Writing a C compiler : build a real programming language from scratch
- San Francisco : No Starch Press, 2024
- xxxvii, 750 p. ; ill., (b & w), 24 cm
Includes bibliographical references and index.
An approachable, hands-on tutorial to writing a C compiler and how programming languages work. Readers are gently led step by step to build a small working compiler that continues to develop throughout the book, creating a final program that translates code written by the programmer into code the computer can understand. Writing a C Compiler offers readers an accessible, practical approach to this complex and often overly theoretical topic.
9781718500426
Assembly language Abstract syntax tree Constant folding Copy propagation Floating-point Pseudocode Register allocator Return statement String literals Undefined behavior