Reference articles on history, science, culture and more
Encyclopedia

CompCert

Formally verified C compiler

CompCert is a formally verified optimizing compiler for a large subset of a dialect of the programming language C, named C99 and known as Clight. As of 2018, CompCert supports the processor architectures ARM, PowerPC, RISC-V, x86, and x86-64. The project, led by Xavier Leroy, began officially in 2005, funded by the French institutes Agence nationale de la recherche (ANR) and French Institute for Research in Computer Science and Automation (INRIA). The compiler is specified, programmed and proven in proof assistant software named Rocq. CompCert is to be used to program embedded systems requiring reliability. The performance of its generated code is often close to that of GNU Compiler Collection (GCC) version 3, at optimization level -O1, and always better than that of GCC with no optimizations.

Since 2015, AbsInt offers commercial licenses, provides support and maintenance, and contributes to the advancement of the tool. CompCert is released under a noncommercial license, and is therefore not free software, although some of its source files are dual-licensed with the GNU Lesser General Public License version 2.1 or later or are available under the terms of other licenses.

For the development of CompCert, the first practically useful optimizing compiler targeting multiple commercial architectures that has a complete, mechanically checked proof of its correctness, Xavier Leroy and the development team of CompCert received the 2021 ACM Software System Award.

Watch videos about CompCertExplainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article CompCert, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.