Compilation and Equivalence of Imperative Objects (Revised Report)
DOI:
https://doi.org/10.7146/brics.v5i55.19500Resumé
We adopt the untyped imperative object calculus of Abadi andCardelli as a minimal setting in which to study problems of compilation
and program equivalence that arise when compiling object oriented
languages. We present both a big-step and a small-step
substitution-based operational semantics for the calculus. Our first
two results are theorems asserting the equivalence of our substitution based semantics with a closure-based semantics like that given by Abadi and Cardelli. Our third result is a direct proof of the correctness of compilation to a stack-based abstract machine via a small-step decompilation algorithm. Our fourth result is that contextual equivalence of objects coincides with a form of Mason and Talcott's CIU
equivalence; the latter provides a tractable means of establishing operational equivalences. Finally, we prove correct an algorithm, used in
our prototype compiler, for statically resolving method offsets. This is
the first study of correctness of an object-oriented abstract machine,
and of operational equivalence for the imperative object calculus.
Downloads
Publiceret
1998-12-15
Citation/Eksport
Gordon, A. D., Hankin, P. D., & Lassen, S. B. (1998). Compilation and Equivalence of Imperative Objects (Revised Report). BRICS Report Series, 5(55). https://doi.org/10.7146/brics.v5i55.19500
Nummer
Sektion
Artikler
Licens
Authors who publish with this journal agree to the following terms:- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).