- Category: Computer
- Author: Torben Mogensen
- Pages: 231 pages
- File type: PDF (319 pages, 1.6 MB)
Read and download free eBook intituled Basics of Compiler Design in format PDF (319 pages, 1.6 MB) – 231 pages created by Torben Mogensen.
This textbook is intended for an introductory course on Compiler Design, suitable for use in an undergraduate programme in computer science or related fields.
It presents techniques for making realistic, though non-optimizing compilers for simple programming languages using methods that are close to those used in “real” compilers, albeit slightly simplified in places for presentation purposes. All phases required for translating a high-level language to machine language is covered, including lexing, parsing, intermediate-code generation, machine-code generation and register allocation. Interpretation is covered briefly.
Aiming to be neutral with respect to implementation languages, algorithms are presented in pseudo-code rather than in any specific programming language, and suggestions for implementation in several different language flavors are in many cases given. The techniques are illustrated with examples and exercises.
Read and Download Links: