r/Compilers • • 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

10 comments sorted by

View all comments

14

u/cxzuk Oct 11 '26

Hi VMCrash,

The knowledge pool is deep, and you can easily rabbit hole on one topic. Sometimes you want the theory side of things, sometimes the practical side of things.

While I believe there are some essential topics to know, ultimately everything in a compiler is based on the requirements of the work it has to do.

So I think I would encourage a new dev to consider reading the "A Survey of" or "landscape" papers - ones which give a broad stroke understanding of the options available such as:

Gabriel Blindell 2016 "Instruction Selection" - https://www.cs.tufts.edu/~nr/cs257/archive/gabriel-hjort-blindell/monograph.pdf

Cooper & Torczon 2023 "Engineering A Compiler: Chapter 12 - Instruction Scheduling" (cant link)

Jonathan Protzenko 2009 "A Survey Of Register Allocation Techniques" https://jonathan.protzenko.fr/papers/register09.pdf

Stanier & Watson 2013 "Intermediate Representations in Imperative Compilers" https://dl.acm.org/doi/epdf/10.1145/2480741.2480743

Keith Cooper 1998 "Compiler-Based Code-Improvement Techniques" https://www.cs.tufts.edu/~nr/cs257/archive/keith-cooper/survey.pdf

You might not be able to make a compiler after, but I think they can help give a better understanding of what's going on inside them, and to see some of the beauty of the domain subject.

M ✌