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
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...
EXPLORE Lunar Scientific Data Applications: L-Explo and L-Hex
EXPLORE Lunar Scientific Data Applications: L-Explo and L-Hex
<p><strong>EXPLORE Horizon 2020 Research & Innovation project:</strong></p>
<p>The project&#82...
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...
Verified just-in-time compiler on x86
Verified just-in-time compiler on x86
This paper presents a method for creating formally correct just-in-time (JIT) compilers. The tractability of our approach is demonstrated through, what we believe is the first, ver...
Redesigning Pricing Systems for E-Commerce Platforms: A Case Study in Backend Optimization
Redesigning Pricing Systems for E-Commerce Platforms: A Case Study in Backend Optimization
The dynamic nature of e-commerce requires adaptable and efficient pricing systems to meet the demands of competitive markets. This study presents a comprehensive approach to redesi...


