A new approach to compiling adaptive programs

  • Jens Palsberg*
  • , Boaz Patt-Shamir
  • , Karl Lieberherr
  • *Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

12 Scopus citations

Abstract

An adaptive program can be understood as an object-oriented program where the class graph is a parameter, and hence the class graph may be changed without changing the program. The problem of compiling an adaptive program and a class graph into an object-oriented program was studied by Palsberg et al. (1995). Their compiler is efficient but works only in special cases. In this paper we present and prove the correctness of a compiler that handles the general case. The compiler first computes a finite-state automaton and then uses it to generate efficient code.

Original languageEnglish
Pages (from-to)303-326
Number of pages24
JournalScience of Computer Programming
Volume29
Issue number3
DOIs
StatePublished - Sep 1997
Externally publishedYes

Funding

FundersFunder number
BRIGS
Basic Research in Computer Science, Centre of the Danish National Research Foundation
National Science FoundationCCR-9402486, CDA-9015692

    Fingerprint

    Dive into the research topics of 'A new approach to compiling adaptive programs'. Together they form a unique fingerprint.

    Cite this