An Automatic Program Generator for Multi-Level Specialization

  • Authors:
  • Robert Glück;Jesper Jørgensen

  • Affiliations:
  • DIKU, Department of Computer Science, University of Copenhagen, Universitetsparken 1, DK-2100 Copenhagen, Denmark. E-mail: glueck@diku.dk;Department of Mathematics and Physics, Royal Veterinary and Agricultural University, Thorvaldsensvej 40, DK-1871 Frederiksberg C, Denmark. E-mail: jesper@dina.kvl.dk

  • Venue:
  • Lisp and Symbolic Computation
  • Year:
  • 1997

Quantified Score

Hi-index 0.01

Visualization

Abstract

Program specialization can divide a computation into severalcomputation stages. This paper investigates the theoreticallimitations and practical problems of standard specialization tools,presents multi-level specialization, and demonstrates that, incombination with the cogen approach, it is far more practical thanpreviously supposed. The program generator which we designed andimplemented for a higher-order functional language converts programsinto very compact multi-level generating extensions that guarantee fastsuccessive specialization. Experimental results show a remarkablereduction of generation time and generator size compared to previousattempts of multi-level specialization by self-application. Our approach to multi-levelspecialization seems well-suited for applications where generation timeand program size are critical.