|Speaker||Dr. Michael Petter|
|Date||Thursday, 14:05 - 15:35|
exam: Tuesday, 13.08.2019, 13:30-15:00 Interims HS1
A Compiler is an essential part of the system software stack. Its job consists in translating programs from a high-level programming language like C or Java into a sequence of machine instructions of an actual processor. Compilers are comparatively complex programs. Their construction involves ideas and approaches from many different areas of computer science. The first two phases, i.e. lexical and syntactical analysis of the input program, are a major application for formal methods. Later on, e.g. during code generation, we treat methods for register allocation via approximative graph colouring.
The lecture is divided into the following topics:
- Outline of compiler construction
- Lexikal analysis:
From regular expressions to NFAs
Scannerdesign with NFAs
- Syntactical analysis
Contextfree languages & pushdown automata
Item-Pushdownautomata & Recursive Descent Parsing
Shift-Reduce Parsing & LR(1) Parser
- Semantical analysis
Code generation schemes
Finally we may find time for less standard techniques for compilers, as e.g. the type inference of programs.
Mini Seminar Topics
- (Mo) Introduction to Parser Combinators - F.S.
- (Mo) Parsing Expression Grammars and Packrat Parsers - M.T.
- (We) LALR(k) - M.Z.
- (Mo) Pager's LR(k) - S.K.
- (Mo) GLR/Tomita Parser - M.Zi.
- (We) Follow-Automata - A.M.
- (Mo) Antimirov-Automata - M.G.
- (Mo) LL(*) and LL-regular Grammars L.O.
- (We) Semidicision Procedures for Ambiguous Grammars - L.T.
- (We) Island Grammars - C.C.
- (Mo) General First_k and Follow_k Computation with Constraint Solvers - A.B.
- (We) Reference Attribute Grammars with JastAdd C. V. N.
- (We) Extensible Grammars with PPG - P.B.
- (We) Language Processing with Kiama/Scala - Laura
- (We) Earley Parser - P.K.
- (We) LL(*) and LL-regular Grammars LL(*) and LL-regular Grammars A.M.
Information regarding the presentation of the seminar topics see Section Tutorial.
You can find the recordings in the TTT archive.
Date: Mondays 14.15-15:45 and Wednesdays 8:30-10:00 starting from the second week (29.4.- 3.5.)
On July 22nd at 14:00h seminar topics 1-8 will be presented and on July 24th at 8:30h seminar topics 9-15 will be presented in the tutorials.
Please note that on Monday we start at 14:00h not at 14:15h as usually.
If you have questions or comments to the tutorial please contact Raphaela Palenta (raphaela.palenta<at>tum.de).
- You will be allowed to bring hand- and/or machine-written sheets or books to the exam.
- Questions may be answered in English or German.
- Attention: There will be only one exam at the end of the semester, and no repetition exam in the winter!
- In case you did not pass, you have the opportunity to take "Programming Languages" or "Program Optimization" next semester or alternatively repeat the exam next summer.
for TUM students, the German edition is downloadable for free through the TUM/LRZ-Proxy, the English edition is available in the form of several hardcopies in the library.