Programming Languages and Compilers

 

Lecture 9

 

In this lecture we will start looking at the third phase of the compiler: Code generation.

We start by looking at run-time organisation.

 

The slides for this lecture can be found here.

 

Literature

 

Watt & Brown, section 6.1 – 6.6, section 6.8 and Appendix C.

Sebesta chapter 10.

 

Exercises

 

Exercises for lecture 9 will be done from 12.30 till 14.15 before Lecture 10 on Thursday the 25th of March.

 

  1. Do Watt and Brown exercise 6.1 page 240
  2. Do Watt and Brown exercise 6.2 page 241
  3. Do Watt and Brown exercise 6.3 page 241
  4. Do Watt and Brown exercise 6.6 page 242
  5. Do Watt and Brown exercise 6.13 page 244
  6. Do Watt and Brown exercise 6.15 page 244
  7. Do Watt and Brown exercise 6.16 page 244
  8. Do Watt and Brown exercise 6.19 page 246
  9. Do Sebesta exercise 10.4 page 425
  10. Do Sebesta exercise 10.5 page 425