Compilers

From source to machine code — lexing, parsing, optimization, and code generation.

01
COMPILER PIPELINE
From source text to machine code in stages
L114 MIN
02
REGISTER ALLOCATION
Graph coloring meets hardware limits
L218 MIN
03
SSA FORM
Every variable assigned exactly once
L318 MIN
04
JIT COMPILATION
Compile at runtime, optimize what matters
L215 MIN
05
PARSING: PRECEDENCE & RECURSIVE DESCENT
Why 1 + 2 * 3 is not 9
L215 MIN
06
CLOSURES & ESCAPE ANALYSIS
When a local variable has to outlive its function
L215 MIN
07
CAPSTONE: A TINY OPTIMIZING PASS
Everything in this path, in one pass over three-address code
L320 MIN