Content deleted Content added
No edit summary |
m →Overview: grammar/usage - 'instructions', 'references', are countable nouns |
||
Line 2:
==Overview==
When [[code generation (compiler)|generating code]] for arithmetic expressions, the [[compiler]] has to decide which is the best way to translate the expression in terms of number of instructions used as well as number of registers needed to evaluate a certain subtree. Especially in the case that free registers are scarce, the [[order of evaluation]] can be important to the length of the generated code, because different orderings may lead to larger or smaller numbers of intermediate values being [[register allocation|spilled]] to memory and then restored. The Sethi–Ullman algorithm (also known as '''Sethi–Ullman numbering''') fulfills the property of producing code which needs the
==Simple Sethi–Ullman algorithm==
|