Scope conserving expression evaluation: a class of storage optimal evaluation strategies for arithmetic expressions

Abstract

One important aspect of the object code generated for arithmetic expressions in higher level languages is the amount of temporary storage needed during evaluation. This amount is a function of the sequence in which an expression's subexpression are evaluated. Usually the implementor has the freedom to choose any order of evaluation, provided that operations are executed after the evaluation of their respective operands. This allows for the use of a multitude of possible evaluation sequences. In 1971 the author identified a large class of such evaluation strategies by the newly coined term 'scope conserving'.In this paper we show that this class of strategies will minimize the amount of temporary storage with respect to a very general cost function. The optimizing sequencing strategies for temporary storage derived by Anderson, Colin, Nakata, Redziejowski, Sethi-Ullmann and Chroust are shown to be expressible in the model.

DOI: 10.1145/954618.954622

1 Figure or Table

Cite this paper

@inproceedings{Chroust1977ScopeCE, title={Scope conserving expression evaluation: a class of storage optimal evaluation strategies for arithmetic expressions}, author={Gerhard Chroust}, booktitle={SIGP}, year={1977} }