We can make Gcc much faster despite the above. However your code will be slow. Each optimization adds a little more time. Even at zero optimization the compiler is still doing things to not generate stupid code. Gcc is extremely complex, and they are often willing to compromise runtime performance for either faster code, or easier maintainability - the right compromise for them, but it means the compiler is slower than it could be.
tristenharr•1h ago
So I'm writing a WASM JIT, and I'm wondering why things never got to that point? Is it just beyond human comprehension? (Don't get me wrong here, I would not be writing something Jitting to WASM without AI, and maybe it's these types of projects that simply weren't feasible or something to consider pre-AI unless you were very rich and very bored.)