|
|
|
Code Generation
Exercises
-
Discuss a good strategy for computing stack limits for ESJ methods.
-
Show an appropriate code template for a for loop.
-
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
Materials
Code Generation in SJC
|