ACM Home Page
Please provide us with feedback. Feedback
Optimal code generation for expression trees
Full text PdfPdf (820 KB)
Source Annual ACM Symposium on Theory of Computing archive
Proceedings of seventh annual ACM symposium on Theory of computing table of contents
Albuquerque, New Mexico, United States
Pages: 207 - 217  
Year of Publication: 1975
Authors
Sponsors
ACM: Association for Computing Machinery
SIGACT: ACM Special Interest Group on Algorithms and Computation Theory
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 9,   Downloads (12 Months): 65,   Citation Count: 5
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/800116.803770
What is a DOI?

ABSTRACT

We discuss the problem of generating code for a wide class of machines, restricting ourselves to the computation of expression trees. After defining a broad class of machines and discussing the properties of optimal programs on these machines, we derive a necessary and sufficient condition which can be used to prove the optimality of any code generation algorithm for expression trees on this class. We then present a dynamic programming algorithm which produces optimal code for any machine in the class; this algorithm runs in time which is linearly proportional to the number of vertices in an expression tree.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
 
2
Aho, A. V., and Ullman, J. D., "Optimization of Straight Line Code," SIAM J. Computing1:1 (1972), 1-19.
3
4
 
5
Bruno, J., and Sethi, R., "Register Allocation for a One-Register Machine," Technical Report No. 157, Computer Science Dept., Pennsylvania State University, October 3, 1974.
6
 
7
Karp, R. M., "Reducibility among Combinatorial Problems," in Complexity of Computer Computations, R. E. Miller and J. W. Thatcher (eds.), Plenum Press, New York (1972), 85-103.
 
8
Knuth, D. E., Fundamental Algorithms, second edition, The Art of Computer Programming 1, Addison-Wesley, Reading, Mass., 1973.
9
10
 
11
Sethi, R., "Complete Register Allocation Problems," Technical Report No. 134, Computer Science Dept., Pennsylvania State University, May, 1974.
12
 
13
14


Collaborative Colleagues:
A. V. Aho: colleagues
S. C. Johnson: colleagues