Can a formally-verified C compiler be as performant as gcc -O2?
Summary
InfraAI analyzes whether a formally verified C compiler, CompCert, can match GCCs -O2 performance and explains how formal verification interacts with optimization. It describes assembly level investigations to identify missing transformations, the use of coding agents to implement and verify new passes, and the memory model and human gate considerations that ensure soundness. The result shows substantial improvements narrowing the gap to GCC -O2 while outlining remaining barriers, especially for larger programs.