3 ms·
Compiler know-how and resources available during compilations made very signicant progress between gcc and LLVM/clang era. gcc was and is an incredible achieve
by stmw 10mo ago
Compiler know-how and resources available during compilations made very signicant progress between gcc and LLVM/clang era.
gcc was and is an incredible achievement, but it is traditionally considered difficult to implement many modern compiler techqniques in it. It's at least unpleasant, let's put it this way.
- uecker 10mo agoNot sure whether this is generally true. GCC appears to have similar optimizations and I personally find LLVM's code much more intimidating. But it is certainly true that LLVM seems to see more investment. I assume the license may also play a role. For comparison, here is some related code: https://github.com/gcc-mirror/gcc/blob/master/gcc/tree-chrec.cc https://github.com/gcc-mirror/gcc/blob/master/gcc/tree-chrec... https://github.com/llvm/llvm-project/blob/release/21.x/llvm/lib/Analysis/ScalarEvolution.cpp https://github.com/llvm/llvm-project/blob/release/21.x/llvm/...
- saagarjha 10mo agoGCC has almost the same modern compiler techniques implemented.