English version

PPS UMR 7126 – Laboratoire
Preuves, Programmes et Systèmes

Accueil · Présentation · Membres · Publications · Séminaire · Groupes de travail · Projets · πr²

CerCo: A cost annotating compiler for C


The project aims to the construction of a formally verified complexity preserving compiler from a large subset of C to some typical microcontroller assembly, of the kind traditionally used in embedded systems. The work comprise the definition of cost models for the input and target languages, and the machine-checked proof of preservation of complexity (concrete, not asymptotic) along compilation. The compiler will also return tight and certified cost annotations for the source program, providing a reliable infrastructure to draw temporal assertions on the executable code while reasoning on the source. The compiler will be open source, and all proofs will be public domain.



You can download the source distribution, following these links:

If you are in a hurry, we have made a script that builds an automatic local installation of our software and all its dependencies. (You just need a standard gcc installation.)

Web applications

You can test our cost annotating compilers directly in your web browser by following this link:

Mechanically checked proofs for a toy CerCo compiler

Most of the formal proofs have been done in the Coq proof assistant. The following link is an online documentation of the development:

Related links