next up previous
Next: Backpatching Up: Compiler Theory: Intermediate Code Generation Previous: Optimizations for the generated code

Optimizations for the compiler performances

LOOKING UP SYMBOLS. One should avoid intensive searching for symbols in the symbol table during type checking and translation.


EMISSION RATHER THAN CONCATENATION. Instead of attaching a string S.string to each instance of the grammar symbol S encountered during the translation, one should try

In the next syntax-directed definitions, the procedure emit writes 3-address statements directly into output.



Subsections
next up previous
Next: Backpatching Up: Compiler Theory: Intermediate Code Generation Previous: Optimizations for the generated code
Marc Moreno Maza
2004-12-02