A program manipulation system based on partial evaluation
1977 (English)Doctoral thesis, monograph (Other academic)
Program manipulation is the task to perform transformations on program code, and is normally done in order to optimize the code with respect of the utilization of some computer resource. Partial evaluation is the task when partial computations can be performed in a program before it is actually executed. If a parameter to a procedure is constant a specialized version of that procedure can be generated if the constant is inserted instead of the parameter in the procedure body and as much computations in the code as possible are performed.
A system is described which works on programs written in INTERLISP, and which performs partial evaluation together with other transformations such as beta-expansion and certain other optimization operations. The system works on full LISP and not only for a "pure" LISP dialect, and deals with problems occurring there involving side-effects, variable assignments etc. An analysis of a previous system, REDFUN, results in a list of problems, desired extensions and new features. This is used as a basis for a new design, resulting in a new implementation, REDFUN-2. This implementation, design considerations, constraints in the system, remaining problems, and other experience from the development and experiments with the system are reported in this paper.
Place, publisher, year, edition, pages
Linköping: Linköpings universitet, 1977. , 264 p.
Linköping Studies in Science and Technology. Dissertations, ISSN 0345-7524 ; 14
program manipulation, partial evaluation, program optimization, LISP, beta-expansion, macro-expansion
National CategoryComputer Science
IdentifiersURN: urn:nbn:se:liu:diva-35618Local ID: 27969ISBN: 91-7372-144-1OAI: oai:DiVA.org:liu-35618DiVA: diva2:256466
Date of defense not available.2009-10-102009-10-102013-01-18