Can a formally-verified C compiler be as performant as gcc -O2?
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
An InfraAI Research Blog post reports that disabling GCC features matching CompCert's semantics (wrapping overflow, no strict aliasing, no FMA, no SIMD) leaves CompCert still 26% slower on its own benchmarks, so missing optimizations, not semantics, explain most of the gap. Using coding agents to write and prove five new passes, the authors report reaching within 4.0% to 6.1% of gcc -O2 on those benchmarks. The figures are the authors' own and come from one benchmark suite. Held-out suites improved less.