Author:
KIAM TAN YONG,MYREEN MAGNUS O.,KUMAR RAMANA,FOX ANTHONY,OWENS SCOTT,NORRISH MICHAEL
Abstract
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.
Publisher
Cambridge University Press (CUP)
Reference46 articles.
1. Romanenko, S. , Russo, C. & Sestoft, P. (2013) Moscow ML owner’s manual, version 2.10. 06.
2. Verifying efficient function calls in CakeML;Owens;PACMPL,2017
3. Functional Big-Step Semantics
4. Pilsner: a compositionally verified compiler for a higher-order imperative language
5. MLton Developers (2017). MLton. http://mlton.org/.
Cited by
33 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Lightweight, Modular Verification for WebAssembly-to-Native Instruction Selection;Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 1;2024-04-17
2. Certified MaxSAT Preprocessing;Lecture Notes in Computer Science;2024
3. Pancake;Proceedings of the 12th Workshop on Programming Languages and Operating Systems;2023-10-23
4. Component-based Distributed Software Reconfiguration:A Verification-oriented Survey;ACM Computing Surveys;2023-08-26
5. Towards Verified Scalable Parallel Computing with Coq and Spark;Proceedings of the 25th ACM International Workshop on Formal Techniques for Java-like Programs;2023-07-18