Introduction to Compiler Design

Mogensen, Torben Ægidius.

Introduction to Compiler Design [electronic resource] / by Torben Ægidius Mogensen. - 3rd ed. 2024. - XXII, 287 p. 139 illus. online resource. - Undergraduate Topics in Computer Science, 2197-1781 . - Undergraduate Topics in Computer Science, .

Lexical analysis -- Syntax analysis.-Scopes and symbol tables -- Interpretation -- Type checking.-Intermediate-code generation -- Machine-code generation -- Register allocation -- Functions -- Data-flow analysis and optimisation -- Optimisation for loops -- More language features -- Set notation and concepts -- Index.

The third edition of this textbook has been fully revised and adds material about the SSA form, polymorphism, garbage collection, and pattern matching. It presents techniques for making realistic compilers for simple to intermediate-complexity programming languages. The techniques presented in the book are close to those used in professional compilers, albeit in places slightly simplified for presentation purposes. "Further reading" sections point to material about the full versions of the techniques. All phases required for translating a high-level language to symbolic machine language are covered, and some techniques for optimising code are presented. Type checking and interpretation are also included. Aiming to be neutral with respect to implementation languages, algorithms are mostly presented in pseudo code rather than in any specific language, but suggestions are in many places given for how these can be realised in different language paradigms. Depending on how much of the material from the book is used, it is suitable for both undergraduate and graduate courses for introducing compiler design and implementation. .

9783031464607

10.1007/978-3-031-46460-7 doi


Compilers (Computer programs).
Compilers and Interpreters.

QA76.76.C65

005.45
© 2024 IIIT-Delhi, library@iiitd.ac.in