Compilers & Languages

From source to machine code and back: parsing, types, SSA, register allocation and JIT.

10 LESSONS~160 MIN
START WITH COMPILER PIPELINE ▸ DRILL MODE ⏱

BEFORE YOU START

This path assumes you can already do the following. Each line says where ATLAS teaches it.

  1. 01 COMPILER PIPELINE From source text to machine code in stages L114 MIN
  2. 02 LAMBDA CALCULUS Computation with nothing but functions L215 MIN
  3. 03 TYPE INFERENCE The compiler figures out what you meant L318 MIN
  4. 04 SEQUENT CALCULUS Proofs as structured search L215 MIN
  5. 05 SSA FORM Every variable assigned exactly once L318 MIN
  6. 06 REGISTER ALLOCATION Graph coloring meets hardware limits L218 MIN
  7. 07 JIT COMPILATION Compile at runtime, optimize what matters L215 MIN
  8. 08 PARSING: PRECEDENCE & RECURSIVE DESCENT Why 1 + 2 * 3 is not 9 L215 MIN
  9. 09 CLOSURES & ESCAPE ANALYSIS When a local variable has to outlive its function L215 MIN
  10. 10 CAPSTONE: A TINY OPTIMIZING PASS Everything in this path, in one pass over three-address code L320 MIN
COMING TO THIS PATH