Programming Languages and Compilers

 

Lecture 15

 

In this lecture we will round off the course by looking at the programming language and compiler lifecycle. We will discuss some of the issues that we didn’t have time to look at in detail and hot topic in programming language and compiler research.

 

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

 

Literature

 

Watt & Brown, chapter 9.

Pratt & Zelkowitz, appendix A. 

 

Exercises

 

Exercises for lecture 15 will be done from 8.15 till 10.00 on Wednesday the 21th of May.

 

For those of you taking the course as an SE course this will also be an opportunity to discuss the exam and the syllabus will be published before.

 

 

  1. Pratt & Zelkowitz, exercise 2.4.7 on page 68.
  2. Do Watt and Brown exercise 9.1 on page 353, try C, Java and SML compilers
  3. Do Watt and Brown exercise 9.2 on page 353 – do this for the language you are implementing.
  4. Do Watt and Brown exercise 9.4 on page 353, try gcc, look at gcc flags controling optimizations
  5. Do Watt and Brown exercise 9.5 on page 354
  6. Do Watt and Brown exercise 9.6 on page 354
  7. Do Watt and Brown exercise 9.8 on page 355 – sketch the solution
  8. Do Watt and Brown exercise 9.14 on page 357 – sketch the solution
  9. Do Watt and Brown exercise 9.17 on page 358 – sketch the solution
  10. Do Watt and Brown exercise 9.18 on page 358 – sketch the solution