A formal approach to code optimization

Alfred V. Aho, Ravi Sethi, J. D. Ullman

Research output: Contribution to conferencePaperpeer-review

1 Scopus citations


We examine from a formal point of view some problems which arise in code optimization and present some of the results which can come from such an approach. Specifically, a set of transformations which characterize optimization algorithms for straight line code is presented. Then we present an algorithm which produces machine code for evaluating arithmetic expressions on machines with N > 1 general purpose registers. We can prove that this algorithm produces optimal code when the cost criterion is the length of machine code generated.

Original languageEnglish (US)
Number of pages15
StatePublished - Jul 27 1970
Event1970 Symposium on Compiler Optimization - Urbana-Champaign, United States
Duration: Jul 27 1970Jul 28 1970


Other1970 Symposium on Compiler Optimization
Country/TerritoryUnited States

ASJC Scopus subject areas

  • Hardware and Architecture


Dive into the research topics of 'A formal approach to code optimization'. Together they form a unique fingerprint.

Cite this