z-logo
open-access-imgOpen Access
Compilation and Equivalence of Imperative Objects
Author(s) -
Andrew Gordon,
Paul D. Hankin,
Søren B. Lassen
Publication year - 1997
Publication title -
brics report series
Language(s) - English
Resource type - Journals
eISSN - 1601-5355
pISSN - 0909-0878
DOI - 10.7146/brics.v4i19.21677
Subject(s) - correctness , equivalence (formal languages) , programming language , operational semantics , compiler , computer science , semantics (computer science) , object oriented programming , theoretical computer science , object (grammar) , algorithm , discrete mathematics , mathematics , artificial intelligence
We adopt the untyped imperative object calculus of Abadi and Cardelli 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 and prove them equivalent to the closure-based operational semantics given by Abadi and Cardelli. Our first result is a direct proof of the correctness of compilation to a stack-based abstract machine via a small-step decompilation algorithm. Our second 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. This report is superseded by BRICS-RS-98-55.

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here