Go to the first, previous, next, last section, table of contents.


Symbol Tables

Symbol tables contain the definitions of the symbols and types used within a SUIF program. Each symbol table is associated with an object corresponding to a particular scope. For example, a procedure symbol table is attached to the abstract syntax tree representing the body of the procedure. The symbol tables can be reached through the corresponding objects and vice versa.

This section describes the symbol table hierarchy and the details of the symbol table operations, such as looking up symbol table entries and adding new entries. It also explains how the symbol tables handle the task of assigning unique ID numbers to the symbols and types. The `symtab.h' and `symtab.cc' files contain the code for symbol tables.


Go to the first, previous, next, last section, table of contents.