logoalt Hacker News

Vaushite • today at 2:50 AM • 2 replies • view on HN

is it faster because it doesn't have much optimization? Most of the slowness of C++ compilers is an extensive search for optimisation opportunities.


Replies

vishvananda • today at 3:33 AM

For reference I blogged about the previous version here which was ahead of gcc in compile time and produced 50% slower compiled code here: https://medium.com/@vishvananda/agentic-c-compiler-redux-5d1... I haven’t updated with the most recent results but the current v5 reference has the perf stated above

vishvananda • today at 3:27 AM

It compiles about 7x faster both at -O0 and -O3. My optimization is not quite on par but it is really close. Compiled code is about 5% slower.