CSCE 425/825 - Compiler Construction

CSCE 425/825
Course Home Page
Course Description
Calendar
Project Upload
Resources
Project
Java
ANTLR
JVM and ASM
Eclipse and Plugins

Code Generation

Exercises

  1. Discuss a good strategy for computing stack limits for ESJ methods.
  2. Show an appropriate code template for a for loop.
  3. There are lots of different ways to implement different operations. In the lecture notes, we show a template for !E on slide 28 implemented using jumps. Define a template that uses the fact that boolean values are represented as 0 and 1 and converts between them by evaluation 1-E. Modify the SJC code-generator to see how it works.

Reading

  • Dragon, Chapter 8.1-8.8

Materials

Code Generation in SJC