Book description
Compilers: Principles and Practice explains the phases and implementation of compilers and interpreters, using a large number of real-life examples. It includes examples from modern software practices such as Linux, GNU Compiler Collection (GCC) and Perl. This book has been class-tested and tuned to the requirements of undergraduate computer engineering courses across universities in India.
Table of contents
- Cover
- Title Page
- Contents
- Dedication
- List of Figures
- List of Tables
- List of Algorithms
- Preface
- Chapter 1 Introduction
- Chapter 2 A Simple Translator
- Chapter 3 Lexical Analyzer
- Chapter 4 Syntax Analyzer
- Chapter 5 Syntax-directed Translation
-
Chapter 6 Type Checking
- 6.1 Data Types and Type Checking
- 6.2 Type Expressions and Type Constructors
- 6.3 Type Equivalence
- 6.4 Type Names, Declarations and Recursive Types
- 6.5 Type Inference
- 6.6 Type Conversion and Coercion
- 6.7 Overloading of Operators and Functions
- 6.8 Example: Type Checking in an Interpreter
- Exercises
- Web Resources
- Further Reading
- Glossary
- Chapter 7 Run-Time Environment
- Chapter 8 Intermediate Code
-
Chapter 9 Code Generation and Machine-dependent Optimization
- 9.1 Our Concerns in Code Generation
- 9.2 The Target Language
- 9.3 Data Structures
- 9.4 Control Constructs
- 9.5 Procedures and Function Calls
- 9.6 The Target Operating Environment
- 9.7 Code Optimization
- 9.8 Machine-dependent Optimization
- 9.9 Converting the 4-tuple and RPN into Assembly Code
- Exercises
- Further Reading
- Glossary
- Chapter 10 Code Optimization
- Chapter 11 Overview of Processing of Some Languages
-
Chapter 12 Project: Compiler for a miniC
- 12.1 MiniC Language
- 12.2 Architecture of miniC Compiler
- 12.3 MiniC Grammar for yacc
- 12.4 Target Language
- 12.5 Symbol Table
- 12.6 Scanner
- 12.7 Parser
- 12.8 Code Generation
- 12.9 Testing
- 12.10 Use of gdb to Debug the FPU Operations
- 12.11 Difference Between AT&T and Intel Assembly Syntax
- Exercises
- Further Reading and Web Resources
- Appendix A Formal Languages and Automata
- Appendix B Assemblers and Macro Processors
- Appendix C Linkers and Loaders
- Appendix D Worked-out Problems
- Bibliography
- Acknowledgements
- Copyright
Product information
- Title: Compilers: Principles and Practice
- Author(s):
- Release date: May 2012
- Publisher(s): Pearson India
- ISBN: 9788131764916
You might also like
book
Express Learning: Principles of Compiler Design
Express Learning is a series of books designed as quick reference guides to important undergraduate computer …
book
Engineering a Compiler, 2nd Edition
This entirely revised second edition of Engineering a Compiler is full of technical updates and new …
book
Effective C
The world runs on code written in the C programming language, yet most schools begin the …
book
Digital Design and Computer Architecture, 2nd Edition
Digital Design and Computer Architecture takes a unique and modern approach to digital design. Beginning with …