Week 9/45

Exercises on code generation

  1. Discuss what a good strategy for computing the stack limit could be.
  2. Show an appropriate code template for the for-loop, which could be used if we no longer handled it as syntactic sugar.
  3. Change the code template for !E (on slide 19) to compute the result as 1-E. Modify the JOOS compiler and try it out.
  4. Study the code for generating code for JOOS programs.

Maintained by Laurie J. Hendren. Last modified Fri Sep 17 07:24:42 EDT 2004. [HOME]
Compiler research projects: Soot, a Java analysis, optimization and transformation toolkit ---- abc, an AspectJ compiler.