7.5 INFORMATION ABOUT THE RUNTIME STORAGE LOCATION


7.4 WHERE SHOULD NAMES BE HELD?

If there is a modest upper bound on the length of the name, then the name can be stored in the symbol table record itself. But if there is no such limit, or if the limit is rarely reached, then an indirect scheme of storing name is used. A separate array of characters , called a "string table," is used to store the name, and a pointer to the name is kept in the symbol table record, as shown in Figure 7.2.

click to expand
Figure 7.2: Symbol table names are held either in the symbol table record or in a separate string table.



Algorithms for Compiler Design
Algorithms for Compiler Design (Electrical and Computer Engineering Series)
ISBN: 1584501006
EAN: 2147483647
Year: 2005
Pages: 108
Authors: O G Kakde

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net