Removal of invariant statements from nested-loops in a single effective compiler pass
Proceedings of the conference on Programming languages and compilers for parallel and vector machines
Semantic attributes and improvement of generated code
ACM '74 Proceedings of the 1974 annual conference - Volume 1
Hi-index | 0.00 |
A new type of constant folding is presented, which is to replace an expression containing constants with an equivalent expression with fewer constants. The process of constant folding within an expression is described using attribute grammars. Since the attributes defined in the semantic rules are all synthesized, the evaluation of attributes of an expression for constant folding can be completed either in a single left-to-right pass of the parse tree of the expression or in conjunction with one-pass syntax analysis of the expression.