*Textbook and Academic Authors Association (TAA) Textbook Excellence Award Winner, 2024*
Engineering a Compiler, Third Edition covers the latest developments in compiler technology, with new chapters focusing on semantic elaboration (the problems that arise in generating code from the ad-hoc syntax-directed translation schemes in a generated parser), on runtime support for naming and addressability, and on code shape for expressions, assignments and control-structures. Leading educators and researchers, Keith Cooper and Linda Torczon, have revised this popular text with a fresh approach to learning important techniques for constructing a modern compiler, combining basic principles with pragmatic insights from their own experience building state-of-the-art compilers.
Table of Contents
1. Overview of Compilation
2. Scanners
3. Parsers
4. Intermediate Representations
5. Syntax-Driven Translation
6. Implementing Procedures
7. Code Shape
8. Introduction to Optimization
9. Data-Flow Analysis
10. Scalar Optimization
11. Instruction Selection
12. Instruction Scheduling
13. Register Allocation
14. Runtime Optimization