[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
article
Free access

Optimal Code Generation for Expression Trees

Published: 01 July 1976 Publication History

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.

References

[1]
AHO, A V, HOPCROFT, J E, AND ULLMAN, J D The Destgn and Analysts of Computer Algorithms Addison-Wesley, Reading, Mass, 1974
[2]
AHO, A. V., AND ULLMAN, J. D. Optimization of stratght line code SIAM J. Comput. 1, 1 (1972), 1-19.
[3]
BEATTY, J C An axlomattc approach to code optimization for expressions J ACM 19, 4 (Oct 1972), 613-640
[4]
BRUNO, J L, AND LASSAGNE, T The generaL,on of opttmal code for stack machmes J ACM 22, 3 (July 1975), 382-396
[5]
BRUNO, J L, AND SETm, R Code generation for a one-register machine J ACM 23, 3 (July 1976)
[6]
COOK, S A The complextty of theorem prowng procedures Proc 3rd Annual ACM Symposium on Theory of Computing, May 1971, pp 151-158
[7]
KARP, R M Reducibility among combinatorial problems In Complextty of Computer Computattons, R E Miller and J W Thatcher, Eds, Plenum Press, New York, 1972, pp 85-103
[8]
KERNIGHAN, B W AND CHERRY', L,L A system for typesetting mathematics Comm ACM 18, 3 (Mar 1975), 151-156
[9]
KNUTH, D E The Art oJ Computer Programming, Vol 1, Fundamental Algorahms, 2nd ed Addison- Wesley, Reading, Mass, 1973
[10]
NAKATA, I On complhng algorithms for arithmetic expressions Comm ACM 10, 8 (Aug 1967), 492-494
[11]
REDZIEJOWSKI, R R On arithmetic expressions and trees Comm ACM 12, 2 (Feb 1969), 81-84
[12]
SETHI, R Complete register allocation problems SlAM J Computing 4, 3 (Sept 1975), 226-248
[13]
SETHI, R, AND ULLMAN, J D The generation of optimal code for anthmeUc expressions J ACM 17, 4 (Oct 1970), 715-728
[14]
WASILEW, S G A compder wrmng system w~th opt~mtzat~on capablhttes for complex order structures, Ph D th, Northwestern U, Evanston, I11, 1971
[15]
WALKER, S A, AND STRONG, H R Characterizations of flowchartable recurmons Proc 4th Annual ACM Symposium on Theory of Computing, May 1972, pp 18-34

Cited By

View all

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image Journal of the ACM
Journal of the ACM  Volume 23, Issue 3
July 1976
175 pages
ISSN:0004-5411
EISSN:1557-735X
DOI:10.1145/321958
Issue’s Table of Contents

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 01 July 1976
Published in JACM Volume 23, Issue 3

Permissions

Request permissions for this article.

Check for updates

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)320
  • Downloads (Last 6 weeks)31
Reflects downloads up to 27 Dec 2024

Other Metrics

Citations

Cited By

View all

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Login options

Full Access

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media