Basics of Compiler Design

I have taught an undergraduate compilers course for over a decade. In the last many years, I have used my own textbook "Basics of Compiler Design", which I have decided to make available online.

Permission to copy and print for personal use is granted.

Differences between editions

Each new edition has fixed errors and rephrased some explanations. Additionally, the 2008 edition added a chapter about analysis and optimisation, the 2009 edition added a short chapter about interpretation and is typeset in a slightly heavier font. The 2010 edition represents the 10th anniversary of the book and has added a chapter about memory management and an appendix about set notation.

Torben Mogensen

DIKU, University of Copenhagen, Universitetsparken 1, DK-2100 København Ø

E-mail: torbenm@diku.dk Telephone: (+45) 35 32 14 04 Fax: (+45) 35 32 14 01