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
Actor-critic based on Attention Model for Multi-robotCollaborative Backend Optimization
Actor-critic based on Attention Model for Multi-robotCollaborative Backend Optimization
Abstract
Backend optimization is an essential component of simultaneous localization and mapping (SLAM).Collaborative backend optimization in multi-robot systems re...
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...
Hardware support for dynamic activation of compiler-directed computation reuse
Hardware support for dynamic activation of compiler-directed computation reuse
Compiler-directed Computation Reuse (CCR) enhances program execution speed and efficiency by eliminating dynamic computation redundancy. In this approach, the compiler designates l...
Memory Utilization and Machine Learning Techniques for Compiler Optimization
Memory Utilization and Machine Learning Techniques for Compiler Optimization
Compiler optimization techniques allow developers to achieve peak performance with low-cost hardware and are of prime importance in the field of efficient computing strategies. The...
TC-Verifier: Trans-Compiler-Based Code Translator Verifier with Model-Checking
TC-Verifier: Trans-Compiler-Based Code Translator Verifier with Model-Checking
Code-to-code translation, a critical domain in software engineering, increasingly utilizes trans-compilers to translate between high-level languages. Traditionally, the fidelity of...
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...

