A Region-Based Abstract Machine for the ML Kit
- Martin Elsman,
- Niels Hallenberg
- University of Copenhagen
Research Output:
Book / Anthology / Report
Report
Open access
Publication Information
Output type
Research Output:
Book / Anthology / Report
Report
Original language
EnglishPublication milestones
- Published - 08/2002
Publication status
Published - 08/2002
Place of publication
CopenhagenEdition
TR-2002-18Publisher
IT-Universitetet i København, DenmarkBook series
- Book series name: IT University Technical Report Series
Series number: TR-2002-18
ISSN: 1600-6100
ISBN (Electronic)
87–7949–025–5Abstract
This document describes the implementation of a bytecode backend for the ML Kit, a Standard ML compiler based on region inference. The purpose of the bytecode backend is to enable the ML Kit to produce portable and compact code that can be executed in environments where control of memory usage is a concern. The document includes (1) a presentation of the target of the new backend, namely a region-based abstract machine called the Kit Abstract Machine (KAM), (2) a description of the intermediate language RegExp used in the ML Kit, (3) a presentation of yet an intermediate language LiftExp, in which all functions are lifted to top level, (4) a translation from the language RegExp to the language LiftExp, and finally, (5) a translation from the intermediate language LiftExp into KAM instructions. The focus of this document is not on providing a formal definition of the KAM or of the translation into KAM instructions. Instead, this report is meant to document - sometimes informally - the implementation and the design of the many features of the KAM.
Access to documents
Final published version, 332.34 KB
