by htfy96 · 7y ago · 0 comments
These compilers are mainly designed for extreme performance. People complaining slow compilation of LLVM must never used ICC's -fast mode before, where a helloworld can take ~30s to compile. Developers still spend thousands on it because it squashed every drop of performance.
The problem is having both at the same time (i haven't seen any build configuration try to mix optimization levels) without compromising on compiler speed for -O1, so projects that require -O2 for a 0.1% of their codebase apply it for 100% of it.
In theory depending on the language you could mix different compilers, but that is a big can of worms (and other bugs).
In other words, it is not "hard" to build compilers with better performance. What is hard is getting performance without build times exploding.