Provably Correct Compiler Generation

Authors

  • Jens Palsberg

DOI:

https://doi.org/10.7146/dpb.v21i422.6736

Abstract

We have designed, implemented, and proved the correctness of a compiler generator that accepts action semantic descriptions of imperative programming languages. We have used it to generate compilers for both a toy language and a non-trivial subset of Ada. The generated compilers emit absolute code for an abstract RISC machine language that is assembled into code for the SPARC and the HP Precision Architecture. The generated code is an order of magnitude better than that produced by compilers generated by the classical systems of Mosses, Paulson, and Wand. Our machine language needs no run time type-checking and is thus more realistic than those considered in previous compiler proofs. We use solely algebraic specifications; proofs are given in the initiaI model. The use of action semantics makes the processable language specifications easy to read and pleasant to work with. We view our compiler generator as a promising first step towards user-friendly and automatic generation of realistic and provably correct compilers.

Author Biography

Jens Palsberg

Downloads

Published

1992-10-01

How to Cite

Palsberg, J. (1992). Provably Correct Compiler Generation. DAIMI Report Series, 21(422). https://doi.org/10.7146/dpb.v21i422.6736