Subject: Compiler architecture. Syntax processing.
Text: skim Appel, chpt. 1. Focus on the tree representation and on the layers of the compiler. Technical details are less important. Read p. 16, sections 2.1–2.2, skim p.39–41, read section 3.1 and pp. 72–75. Skim 4.2 until p.95 (do not read on positions). Figure 4.7 p. 98 may also be useful to look at.
Prerequisites: basic knowledge of C programming language
Comments: We shall first have an architectural view on a compiler and its environment. Then we sketch the mechanisms used in the implementation of syntactical and lexical analyses. We skip many details of how this analyses are implemented. Students attracted by the idea of implementing a custom compiler may want to read entire chapters 2 and 3.
Additional information on C preprocessor can be
found in the manual of the GNU preprocessor. Type man
cpp
or info cpp
on your Unix machine, or point
your browser here.
Time: Tuesday, 21 Mar, 8:30–10:00. Room A6-308
Tutorial: 10:15–12:00. Room your group office.
Resources: TBA