Compilers: Principles, Techniques, and Tools

Compilers: Principles, Techniques, and Tools is a computer science textbook by Alfred V.

Uses your system voice; voice and rate in settings.

Snapshot

≈ 2 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

Compilers: Principles, Techniques, and Tools is a computer science textbook by Alfred V. Aho, Monica S. Lam, Ravi Sethi, and Jeffrey D. Ullman about compiler construction for programming languages. First published in 19861, it is widely regarded as the classic definitive compiler technology text.

It is known as the Dragon Book to generations of computer scientists as its cover depicts a knight and a dragon in battle, a metaphor for conquering complexity. This name can also refer to Aho and Ullman's older Principles of Compiler Design.

First edition

The first edition (1986) is informally called the "red dragon book" to distinguish it from the second edition and from Aho and Ullman's 1977 Principles of Compiler Design sometimes known as the "green dragon book". Topics covered in the first edition include: Compiler structure Lexical analysis (including regular expressions and finite automata) Syntax analysis (including context-free grammars, LL parsers, bottom-up parsers, and LR parsers) Syntax-directed translation Type checking (including type conversions and polymorphism) Run-time environment (including parameter passing, symbol tables and register allocation) Code generation (including intermediate code generation) Code optimization

Second edition

Following in the tradition of its two predecessors, the second edition (2006) features a dragon and a knight on its cover, and is informally known as the purple dragon. Monica S. Lam of Stanford University became a co-author with this edition. The second edition includes several additional topics, including: Directed translation New data flow analyses Parallel machines Garbage collection New case studies

Updated second edition

In order to cover recent developments and issues, there is an updated second edition from Pearson Education India (4 July 2023), with contributions from Sorav Bansal. This revised and updated edition has new chapters on programming language semantics and undefined behaviour semantics.

See also

Structure and Interpretation of Computer Programs

[https://suif.stanford.edu/dragonbook/ Book Website at Stanford with link to Errata

Text derived from https://en.wikipedia.org/w/index.php?oldid=1335968728 under CC BY-SA 4.0; modifications have been made.

References

  1. ↩Wikipedia “Compilers: Principles, Techniques, and Tools” revision 1335968728 · retrieved 2026-10-20 publication date (×1) · confidence 0.95 revision URL