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

22

u/NXDLang Oct 11 '26 • Mindblown

If your goal is to become a better compiler engineer rather than just collect papers, I'd recommend focusing on the papers that introduced ideas you're actually going to implement. A lot of new compiler developers jump straight into the latest PLDI papers and end up drowning in details. The classics are classics for a reason.

  1. SSA (Static Single Assignment) Cytron et al. (1991) Efficiently Computing Static Single Assignment Form and the Control Dependence Graph This is probably the single most important compiler paper you'll ever read if you're interested in optimization. Modern compiler infrastructures such as LLVM are heavily SSA-based. Paper: SSA Paper (Cytron et al.) 1
  2. Data Flow Analysis Kildall (1973) A Unified Approach to Global Program Optimization This paper laid the foundation for a huge amount of modern compiler optimization work, including constant propagation, liveness analysis, and many dataflow techniques. Paper: Kildall's Dataflow Paper 2
  3. Register Allocation Chaitin et al. (1981) Register Allocation via Coloring One of the most influential backend papers ever written. It introduces graph-coloring register allocation, which still shows up in compiler courses today. Paper: Register Allocation via Coloring 3
  4. LR Parsing Knuth (1965) On the Translation of Languages from Left to Right This is the paper that introduced LR parsing. Even if you end up using recursive descent, Pratt parsing, or PEGs, it's worth understanding where modern parsing theory came from. Reference: Knuth LR Parsing Paper 4
  5. PEG Parsing Bryan Ford (2004) Parsing Expression Grammars: A Recognition-Based Syntactic Foundation If you're interested in modern parser design, PEGs are worth learning. They influenced numerous language implementations and tooling ecosystems. Paper: PEG Paper
  6. LLVM Lattner & Adve (2004) LLVM: A Compilation Framework for Lifelong Program Analysis & Transformation Even if you never use LLVM directly, understanding why LLVM was designed the way it was will teach you a tremendous amount about IR design. Paper: LLVM Paper

After reading those, start browsing papers from: • PLDI • POPL • CGO • CC (Compiler Construction) • OOPSLA But honestly, I'd rank implementing a compiler and reading LLVM/Rust/Go/Zig source code above reading most research papers. The papers teach the ideas. Real compiler code teaches how those ideas survive contact with reality.

4

u/splicer13 Oct 11 '26

Almost all your recs seem dated

  1. Cytron: No, dude. It's 40 pages long and notable because it was first-ish not because it explains anything well or simply. When you get SSA, everything is obvious and simple in retrospect. Cytron as a paper reflects all the work that went into 'getting it.' Just now it's just needless punishment. There's a paper from ETH that does it in like 3 pages if control flow is structured.

1a. Maybe Chow or another paper on various variants of SSA

2. Kildall: Very important historical interest, debatable if anyone would remember it if it wasn't by "the guy who wasn't bill gates."

3. Not preston briggs? Chaitan came first obviously but almost all first papers are crappy learning resources for practicing engineers.