Nothing Special   »   [go: up one dir, main page]

Skip to main content
Log in

On the number of registers needed to evaluate arithmetic expressions

  • Published:
BIT Numerical Mathematics Aims and scope Submit manuscript

Abstract

The question of how many temporary storage registers are needed to evaluate compiled arithmetic and masking expressions is discussed. It is assumed that any combination of left-to-right, right-to-left, top-to-bottom, and bottom-to-top techniques may be used to evaluate an expression, but that no factoring or re-arranging of the expression may occur. On this basis, the maximum number of registers needed to evaluate nonparenthesized expressions isN+1, withN the number of dyadic operator precedence levels. For parenthesized expressions with a maximum ofK nested parenthetical subexpressions, the maximum number of registers needed is (K+1)N+1.

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

Bibliography

  1. J. Cohen,Langages pour l'écriture de compilateurs, Doctoral dissertation, University of Grenoble, Grenoble, France, 1967.

    Google Scholar 

  2. I. Nakata,On compiling algorithms for arithmetic expressions, Comm. ACM 10, 8 (August 1967), 492–494.

    Article  Google Scholar 

  3. R.R. Redziejowski,On arithmetic expressions and trees, Comm. ACM 12, 2 (February 1969), 81–84.

    Article  Google Scholar 

  4. D. T. Ross,The AED approach to generalized computer-aided design, Proc. 22nd National ACM Conf., 1967.

  5. V. B. Schneider,A system for designing fast programming language translators, Proc. 1969 Spring Joint Comp. Conf.

  6. N. Wirth and H. Weber,A generalization of ALGOL and its formal definition: Parts I and II, Comm. ACM 9, 1 (Jan.–Feb. 1966), 89–99.

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Schneider, V. On the number of registers needed to evaluate arithmetic expressions. BIT 11, 84–93 (1971). https://doi.org/10.1007/BF01935328

Download citation

  • Received:

  • Issue Date:

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

Key words and Phrases

C R Categories

Navigation