3 ms·
Yes, it's always possible to write assembly code that is at least as fast as C code, if not faster. But it's entirely another question whether you, as a mere m
by a-priori 14y ago
Yes, it's always possible to write assembly code that is at least as fast as C code, if not faster.
But it's entirely another question whether you, as a mere mortal human, are able to do a better job at producing assembly code in practice, for non-trivial programs, than a compiler.
- jwilliams 14y agoThink we completely agree. It's pretty much demonstrated by the update to the piece -- certain compliers & compiler flags did produce the right optimization, whereas the original author did not.