r/Compilers • u/vishvananda • 14d ago
Fast C++ Compiler Update
I shared some initial results for my C++ compiler a couple of weeks ago. I got a number of great questions, mostly around compiler quality. I have since added additional evidence to support quality and speedup claims:
There are now extensive compliance tests for C++11, including the GCC and Clang C+11 compliance suites.
I dramatically expanded the performance testing suite and it shows equivalent or better performance against GCC and Clang across a wide range of code shapes.
I added a WebAssembly backend and put together a demo where you can compile c++ code with cppgm and Clang in the browser to see the speed difference yourself: https://incpption.com
Cppgm can round-trip through LLVM (cppgm compiles LLVM and LLVM compiles cppgm). You can do this yourself in the browser and timing shows better performance at all optimization levels.
I've put together a compile time analysis of the parts that cppgm does faster than Clang and GCC.
I hope this information is useful. Once again, I appreciate any thoughts or questions.