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.

 

  1. Do Watt and Brown exercise 7.1 page 300
  2. Do Watt and Brown exercise 7.2 page 301
  3. Do Watt and Brown exercise 7.3 page 301
  4. Do Watt and Brown exercise 7.5 page 302 (sketch them implementation)
  5. Do Watt and Brown exercise 7.7 page 302 (in (b) sketch the implementation)
  6. Do Watt and Brown exercise 7.10 page 303 (in (b) sketch the implementation)
  7. Take a look at the Java source for the code generator in the Triangle compiler starting with the file Encoder.java.