This paper presents a general approach to the optimization of function calls. We define the class of "low cost function calls" and introduce a technique of detecting and executing these calls in a modified shallow binding system known as "standardized shallow binding". We show that by this technique the overhead expenses of changing environments for low cost calls are nearly cut down to zero. The new method can be applied to any imperative or applicative language. In this paper statically scoped LISP is taken as an example; it is shown how the technique has been applied in the implementation of a LISP interpreter. We also prove that our method exceeds a number of optimizations that have been proposed recently.
CITATION STYLE
Felgentreu, K. U., & Lippe, W. M. (1986). A general approach to the optimization of function calls. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 213 LNCS, pp. 41–52). Springer Verlag. https://doi.org/10.1007/3-540-16442-1_3
Mendeley helps you to discover research relevant for your work.