CompCert
A formally verified C compiler, proven in Coq/Rocq to preserve source semantics, targeting ARM, PowerPC, RISC-V and x86.
At a Glance
Free of charge under the INRIA Non-Commercial License; usable only for evaluation, research, educational and personal purposes. Commercial use requires a separate Software Usage Agreement from AbsInt.
Engagement
Available On
Listed Dec 2026
About CompCert
CompCert is a formally verified C compiler developed in the CompCert project, with source hosted by AbsInt and marketed commercially by AbsInt under a licensing agreement with Inria. It compiles almost all of ISO C 2011 and generates code for ARM, PowerPC, RISC-V and x86 processors. The latest release listed is CompCert 3.18.
What It Is
CompCert is a compiler for critical embedded software. Its distinguishing property is a mathematical, machine-checked proof, developed in the Coq proof assistant (now Rocq), that the generated assembly code behaves as prescribed by the semantics of the source C program. This rules out compiler-introduced bugs and strengthens the guarantees obtained by applying formal methods to source programs.
How It Is Used
Users download the compiler, build it with its Rocq/OCaml toolchain, and compile C sources into assembly and executables for the supported processors. A user's manual covers supported platforms, C features, installation and usage. The release notes describe features such as DWARF debug information, position-independent code and executables, and a source annotation mechanism for AbsInt's analyzers.
Recent Releases and Qualification
The site lists CompCert 3.18 as improving the formal modeling of alignment constraints and the free() function, and adding compatibility with Rocq 9.2. The news page also states that the compiler was qualified for the MFC_NG computer of ATR 42/72 aircraft, with certification credits for DO-178C, DO-333 and DO-330 claimed for avionics software, work developed by AbsInt with guidance from Airbus.
Licensing Model
The repository is publicly readable but CompCert is not free software. The non-commercial release is limited to evaluation, research, educational and personal use. A commercial version with professional support and extra features is available from AbsInt, and some files are dual-licensed under the LGPL.
Collections
Popular collections
- Run YOLO Mode Without Risking Your Laptop
Collection by @reproalex
- ADE List - December 2026
Collection by @mateorivera17
- UI Design Skills for Coding Agents
Collection by @mayachen
- Find the Ways Your AI App Can Fail Before Launch
Collection by @samirhaddad
Add CompCert to one of your collections.
Community Discussions
Be the first to start a conversation about CompCert
Share your experience with CompCert, ask questions, or help others learn from your insights.
Pricing
Non-Commercial Release
Free of charge under the INRIA Non-Commercial License; usable only for evaluation, research, educational and personal purposes. Commercial use requires a separate Software Usage Agreement from AbsInt.
- Use limited to educational, research, evaluation and personal purposes
- Commercial use prohibited under this license
- Not OSI open source; some files (lib/, common/, cparser/, etc.) are dual-licensed under LGPL 2.1+
- Source code available on GitHub
Commercial Version
Commercial CompCert from AbsInt, without non-commercial restriction and with professional support and extra features. Price is not published; contact AbsInt.
- No non-commercial restriction
- Professional support
- Extra features
Capabilities
Key Features
- Formally verified C compiler proven in Coq/Rocq
- Supports almost all of ISO C 2011
- Code generation for ARM, PowerPC, RISC-V and x86
- Machine-checked proof of semantic preservation
- DWARF debugging information generation
- Position-independent code and executables on x86-64, AArch64 and RISC-V
- Source annotation mechanism for AbsInt analyzers
- User's manual
