Phase 4: Adding a Symbol Table

In this phase you need to keep track of the variables that are used in the expressions in the input. After you have recognized and generated code for all of the expressions, you should emit directives to allocate space for all of the variables mentioned in the expressions.

At this point, you should be able to assemble your code using a SPARC assembler.


Barney Maccabe
Last modified: Mon Sep 1 21:54:51 MDT 1997