3 ms·
You're not comparing apples to apples. Compare gcc or clang to Microsoft's C++ compiler from 2020, and you'll find that they're doing just fine. What's changed
by yjftsjthsd-h 6y ago
You're not comparing apples to apples. Compare gcc or clang to Microsoft's C++ compiler from 2020, and you'll find that they're doing just fine. What's changed is that rather than a compiler that takes C++ in and produces x86 executable output, we have compiler suites that take input from C/C++/Fortran/whatever, runs it through a few decades' worth of optimizations, and then target the result at Linux/*BSD/NT/Darwin on ARM/x86/POWER/RISC-V/SPARC/MIPS. And optimizations are expensive.