4 ms·
Compilers get better every year. Hand-tuned assembly only gets better if someone pays attention to it. So even if you can beat the compiler today, you might no
by compiler-guy 6y ago
Compilers get better every year. Hand-tuned assembly only gets better if someone pays attention to it.
So even if you can beat the compiler today, you might not be able to beat it tomorrow.
Therefore it is often useful to have two switchable implementations. High-level code that is basically straightforward, and hand-tuned assembly. You can the compare the two with every new compiler release.
- gnufx 6y agoNot only that, but your micro-architecture-specific hand-tuning probably isn't good for tomorrow's micro-architecture, and definitely not for a new architecture. You still need craft kernels in cases like BLAS, but you really want to reduce them, e.g. BLIS in the case of BLAS.