Title: From: Chapter 1, Modern Compiler Design, by Dick Grun et al'
1Introduction
- From Chapter 1, Modern Compiler Design, by Dick
Grun et al.
2Basic Concepts
3Basic Concepts
4Basic Concepts
51.1 Why study compiler construction
- Compiler construction is very successful
- Proper structuring of the problem
- Judicious use of formalisms
- Use of program-generating tools
- Compiler construction has a wide applicability
- Compilers contains generally useful algorithms
61.2 A simple traditional modular
compiler/interpreter
expression ? expression term expression -
term term term ? term factor term /
factor factor factor ? identifier constant
( expression )
71.2 A simple traditional modular
compiler/interpreter
expression ? expression term expression -
term term term ? term factor term /
factor factor factor ? identifier constant
( expression )
81.2 A simple traditional modular
compiler/interpreter
expression ? expression term expression -
term term term ? term factor term /
factor factor factor ? identifier constant
( expression )
91.2 A simple traditional modular
compiler/interpreter
101.3 The structure of a more realistic compiler
111.4 Compiler architectures
- The width of the compiler
- Whos the boss?
121.5 Properties of a good compiler
131.6 Portability and retargetability
141.7 Place and usefulness of optimization
151.8 A short history of compiler construction
161.9 Grammars
- Grammars
- context-free grammars, the essential formalism
for describing the structure of programs in a PL - Other grammar types besides CFGs
- regular grammars, or regular expressions
- attribute grammars