r/Compilers • u/vmcrash • Oct 11 '26
Papers for new compiler devs
What papers do you suggest for new compiler developers to read for different parts of a compiler?
My most important recommendation would be Linear Scan Register Allocation for the Java HotSpot™ Client Compiler, the master thesis of Christian Wimmer. It is very well written, easy to understand, and covers a lot of practical details.
45
Upvotes
View all comments
1
u/umlcat Oct 11 '26
Before you start, as a friendly disclaimer.
As it occurs with other software, there are several ways to built the same thing, so if you take a look at several compiler design sources, you may find that there are different, and may confuse you.
Take the one that suits you more.
Some questions that may affect the compiler design sources you choose:
Which is the programming language and programming framework you are used to work with ?
Which programming paradigm are you more used to, procedural, object oriented, functional ?
Are you already interested in some existing Compiler Design Framework, such as GCC, LLVM, ANTLR, Gold, or another ?
As an example, I will mention that I learned a lot of procedural pascal and object and class oriented pascal at college, and I also learned C and object and class oriented C++, at college.
My compiler related classes were using "Plain C" style, but there were already object and class oriented C++ techniques for programming design.
Speaking of Functional Programming, Python, neither Haskell did exist. There were some LISP compilers, but I didn't learned about it, until later.
I ended doing a small compiler design related project in procedural pascal in purpouse. It could done it object and class oriented, and in C or C++, but I choose procedural pascal as an alternative to commonly used "Plain C" compiler design techniques.
Sometimes, a Compiler Design student is used to work with a programming language, but needs to learn another one, used in some compiler design sources.
Good Luck, Good Work.
Note, this applies to interpreters and virtual machines, as well.