4 ms·
Hand-optimizing assembly becomes too hard for humans past certain size, which is not yet too large for LLVM, GCC, or ICC. OTOH Fortran (and, I suppose, somethi
by nine_k 4y ago
Hand-optimizing assembly becomes too hard for humans past certain size, which is not yet too large for LLVM, GCC, or ICC.
OTOH Fortran (and, I suppose, something like APL / K / Q) can generate faster code than C++ because Fortran guarantees the absence of aliasing. In C or C++, aliasing precludes certain kinds of optimizations, and proving the absence of aliasing at a particular spot may be too time-consuming (if tractable at all) for the compiler to try.