Skip to main content
Log in

Further analysis of code generation for a single register machine

  • Published:
Acta Informatica Aims and scope Submit manuscript

Summary

This paper presents a systematic development of the analysis of code generation for the single register machine, from linear to exponential time algorithms. A class of expressions with common subexpressions is introduced which can be optimally coded in quadratic time. A heuristic based on this development is shown to produce code size better than 5/4 that of an optimal coding, for any expression. A method is proposed which would improve this bound, but the most straightforward implementation is shown to require exponential time. Finally, a new analysis of the exponential time bound is presented which more closely describes the complexity of the task of producing optimal code.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Aho, A.V., Johnson, S.C.: Optimal Code Generation for Expression Trees. J. ACM 23, 3 (1976)

    Google Scholar 

  2. Aho, A.V., Johnson, S.C., Ullman, J.D.: Code Generation for Expressions with Common Sub-expressions. J. ACM 24, 1 (1977)

    Google Scholar 

  3. Bruno, J.L., Sethi, R.: Code Generation for a One-Register Machine. J. ACM 23, 3 (1976)

    Google Scholar 

  4. Carter, L.R.: An Analysis of Pascal Programs. UMI Research Press, Ann Arbor, Michigan, 1982

    Google Scholar 

  5. Gabow, H.: Private communication.

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Carter, L.R. Further analysis of code generation for a single register machine. Acta Informatica 18, 135–147 (1982). https://doi.org/10.1007/BF00264435

Download citation

  • Received:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF00264435

Keywords