Skip to content

Stage 44Foundations1st EditionUnread

Writing a C Compiler: Build a Real Programming Language from Scratch

Building a compiler for a substantial C subset makes language semantics concrete: parsing, type checking, x64 code generation, and optimization become one working system.

Nora Sandler · No Starch Press (2024) · ISBN 978-1-71-850042-6

  1. 231Lexing, recursive descent parsing, and abstract syntax trees
  2. 232Name resolution, type checking, and semantic analysis
  3. 233C pointers, arrays, structures, and storage duration
  4. 234Intermediate representations and x64 code generation
  5. 235Data-flow analysis, dead stores, and register allocation
Writing a C Compiler: Build a Real Programming Language from Scratch by Nora Sandler