DocumentCode
1833622
Title
Generating optimizing specializers
Author
Glück, Robert ; JØrgensen, Jesper
Author_Institution
Dept. of Comput. Sci., Copenhagen Univ., Denmark
fYear
1994
fDate
16-19 May 1994
Firstpage
183
Lastpage
194
Abstract
We propose a new method for improving the specialization of programs by inserting an interpreter between a subject program and a specializer. We formulate three specializer projections which enable us to generate specializers from interpreters. The goal is to provide a new way to control the specialization of programs, and we report the first practical results. This is a step towards the automatic production of specializers. Using an existing, self-applicable partial evaluator we succeeded in generating a stand-alone specializer for a first-order functional language which is stronger than the partial evaluator used for its generation. The generated specializer corresponds to a simple supercompiler. As an example we show that the generated specializer can achieve the same speed-up effect as the Knuth, Morris and Pratt algorithm (D.E. Knuth et al., vol. 6, no. 2, 1977) by specializing a naive matcher with respect to a fixed pattern. The generated specializer is also strong enough to handle bounded static variation, a case which partial evaluators usually can not handle
Keywords
automatic programming; complete computer programs; functional programming; program compilers; program interpreters; programming languages; automatic production; bounded static variation; first-order functional language; interpreter; naive matcher; optimizing specializers; partial evaluators; self-applicable partial evaluator; simple supercompiler; specializer projections; stand-alone specializer; subject program; Automatic control; Automatic programming; Computer science; Electronic mail; Pattern matching; Production; Program processors;
fLanguage
English
Publisher
ieee
Conference_Titel
Computer Languages, 1994., Proceedings of the 1994 International Conference on
Conference_Location
Toulouse
Print_ISBN
0-8186-5640-X
Type
conf
DOI
10.1109/ICCL.1994.288382
Filename
288382
Link To Document