next up previous contents
Next: Code Generation Up: Description Compilation Previous: Sorting   Contents


Peephole Optimization

After all the instructions have been generated and all the missing information has been added to Mode, it is time to go through the instructions again and eliminate all the redundancies before any code is generated. This is achieved via a process called peephole optimization as follows. Starting at the top, ALE looks at pairs of instructions and try to either eliminate one or merge the two together. Then it moves down by one instruction and does the same to the next pair until it has considered all instructions.


next up previous contents
Next: Code Generation Up: Description Compilation Previous: Sorting   Contents
TRALE Reference Manual