Programming Languages and Compilers

 

Lecture 11

 

In this lecture we will look at code generation.

 

The slides for this lecture can be found here and here.

 

Literature

 

Watt & Brown, chapter 7.

 

Exercises

 

Exercises for lecture 11 will be done from 8.15 till 10.00 before Lecture 12 on Friday the 2nd of May.

 

  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
  5. Do Watt and Brown exercise 7.7 page 302
  6. Do Watt and Brown exercise 7.10 page 303
  7. Take a look at the Java source for the code generator in the Triangle compiler starting with the file Encoder.java.