Skip to main navigation Skip to search Skip to main content

Dynamically Adaptable Software with Metacomputations in a Staged Language

  • Bill Harrison
  • , Tim Sheard

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

5 Scopus citations

Abstract

Profile-driven compiler optimizations take advantage of information gathered at runtime to re-compile programs into more efficient code. Such optimizations appear to be more easily incorporated within a semantics-directed compiler structure than within traditional compiler structure. We present a case study in which a metacomputation-based reference compiler for a small imperative language converts easily into a compiler which performs a particular profile-driven optimization: local register allocation. Our reference compiler is implemented in the staged, functional language MetaML and takes full advantage of the synergy between metacomputation-style language definitions and the staging constructs of MetaML. We believe that the approach to implementing profile-driven optimizations presented here suggests a useful, formal model for dynamically adaptable software.
Original languageEnglish
Title of host publicationProceedings of the Second International Workshop on Semantics, Applications, and Implementation of Program Generation (SAIG)
Place of PublicationFlorence, Italy
PublisherSpringer Verlag
Pages163-182
Number of pages20
Volume2196
DOIs
StatePublished - 2001
Externally publishedYes

Publication series

NameLecture Notes in Computer Science
PublisherSpringer-Verlag

Fingerprint

Dive into the research topics of 'Dynamically Adaptable Software with Metacomputations in a Staged Language'. Together they form a unique fingerprint.

Cite this