Programming Languages and
Compilers
Lecture 10
In this lecture we will look at code generation.
The slides for this lecture can be found here.
Literature
Watt & Brown, chapter 7.
Exercises
Exercises for lecture 10 will be done from 12.30 till
14.15 before Lecture 11 on Tuesday the 30th of March.
- Do Watt and Brown exercise 7.1 page 300
- Do Watt and Brown exercise 7.2 page 301
- Do Watt and Brown exercise 7.3 page 301
- Do Watt and Brown exercise 7.5 page 302 (sketch them
implementation)
- Do Watt and Brown exercise 7.7 page 302 (in (b) sketch the
implementation)
- Do Watt and Brown exercise 7.10 page 303 (in (b) sketch the
implementation)
- Take a look at the Java source for the code generator in the Triangle
compiler starting with the file Encoder.java.