next up previous
Next: Optimizations for the compiler performances Up: Compiler Theory: Intermediate Code Generation Previous: Boolean Expressions and Control Flow

Optimizations for the generated code

REDUCING THE NUMBER OF TEMPORARIES. Temporaries are used to hold intermediate values when evaluated expressions need to be stored in the symbol-table.

Temporaries can be re-used! A simple approach is to change newtemp. We will come back to the topic of code optimization in the next chapter.


next up previous
Next: Optimizations for the compiler performances Up: Compiler Theory: Intermediate Code Generation Previous: Boolean Expressions and Control Flow
Marc Moreno Maza
2004-12-02