Javascript must be enabled to continue!
The verified CakeML compiler backend
View through CrossRef
AbstractThe CakeML compiler is, to the best of our knowledge, the most realistic verified compiler for a functional programming language to date. The architecture of the compiler, a sequence of intermediate languages through which high-level features are compiled away incrementally, enables verification of each compilation pass at an appropriate level of semantic detail. Parts of the compiler’s implementation resemble mainstream (unverified) compilers for strict functional languages, and it supports several important features and optimisations. These include efficient curried multi-argument functions, configurable data representations, efficient exceptions, register allocation, and more. The compiler produces machine code for five architectures: x86-64, ARMv6, ARMv8, MIPS-64, and RISC-V. The generated machine code contains the verified runtime system which includes a verified generational copying garbage collector and a verified arbitrary precision arithmetic (bignum) library. In this paper, we present the overall design of the compiler backend, including its 12 intermediate languages. We explain how the semantics and proofs fit together and provide detail on how the compiler has been bootstrapped inside the logic of a theorem prover. The entire development has been carried out within the HOL4 theorem prover.
Cambridge University Press (CUP)
Title: The verified CakeML compiler backend
Description:
AbstractThe CakeML compiler is, to the best of our knowledge, the most realistic verified compiler for a functional programming language to date.
The architecture of the compiler, a sequence of intermediate languages through which high-level features are compiled away incrementally, enables verification of each compilation pass at an appropriate level of semantic detail.
Parts of the compiler’s implementation resemble mainstream (unverified) compilers for strict functional languages, and it supports several important features and optimisations.
These include efficient curried multi-argument functions, configurable data representations, efficient exceptions, register allocation, and more.
The compiler produces machine code for five architectures: x86-64, ARMv6, ARMv8, MIPS-64, and RISC-V.
The generated machine code contains the verified runtime system which includes a verified generational copying garbage collector and a verified arbitrary precision arithmetic (bignum) library.
In this paper, we present the overall design of the compiler backend, including its 12 intermediate languages.
We explain how the semantics and proofs fit together and provide detail on how the compiler has been bootstrapped inside the logic of a theorem prover.
The entire development has been carried out within the HOL4 theorem prover.
Related Results
A study of compiler techniques for multiple targets in compiler infrastructures
A study of compiler techniques for multiple targets in compiler infrastructures
Compilers are critical for embedded systems and high performance computing. A compiler infrastructure provides an infrastructure for rapid development of high quality compilers. Ba...
Mapping Ada onto embedded systems: memory constraints
Mapping Ada onto embedded systems: memory constraints
Running Ada programs on a self-targeting system with "virtually" unlimited memory (such as a mainframe), is quite different from running Ada on an embedded target. On self-targetin...
High-level compiler analysis for OpenMP
High-level compiler analysis for OpenMP
Nowadays, applications from dissimilar domains, such as high-performance computing and high-integrity systems, require levels of performance that can only be achieved by means of s...
Candle: A Verified Implementation of HOL Light (Extended Version)
Candle: A Verified Implementation of HOL Light (Extended Version)
Abstract
This paper presents a fully verified interactive theorem prover for higher-order logic, more specifically: a fully verified clone of HOL Light. Our verif...
Collective optimization
Collective optimization
Iterative optimization is a popular and efficient research approach to optimize programs using feedback-directed compilation. However, one of the key limitations that prevented wid...
Specification, Verification and Prototyping of an Optimized Compiler
Specification, Verification and Prototyping of an Optimized Compiler
Abstract
This paper generalizes an algebraic method for the design of a correct compiler to tackle specification and verification of an optimized compiler. The main optim...
Babel, an application of extensible compilers
Babel, an application of extensible compilers
The normal approach in providing an extensible programming language seems to be to design and implement a base language which has facilities enabling the programmer to define and u...

