Optimal Code Generation for Expression Trees
- 1 July 1976
- journal article
- Published by Association for Computing Machinery (ACM) in Journal of the ACM
- Vol. 23 (3), 488-501
- https://doi.org/10.1145/321958.321970
Abstract
This paper discusses algorithms which transform expression trees into code for register machines. A necessary and sufficient condition for optimality of such an algorithm is derived, which applies to a broad class of machines. A dynamic programming algorithm is then presented which produces optimal code for any machine in this class; this algorithm runs in time linearly proportional to the size of the input.Keywords
This publication has 9 references indexed in Scilit:
- Code Generation for a One-Register MachineJournal of the ACM, 1976
- The Generation of Optimal Code for Stack MachinesJournal of the ACM, 1975
- A system for typesetting mathematicsCommunications of the ACM, 1975
- An axiomatic approach to code optimization for expressionsJournal of the ACM, 1972
- Optimization of Straight Line ProgramsSIAM Journal on Computing, 1972
- Reducibility among Combinatorial ProblemsPublished by Springer Nature ,1972
- The Generation of Optimal Code for Arithmetic ExpressionsJournal of the ACM, 1970
- On arithmetic expressions and treesCommunications of the ACM, 1969
- On compiling algorithms for arithmetic expressionsCommunications of the ACM, 1967