Is Assembly Programming Still Relevant, Today?
intelinsight asks: "Consider the following question given the current software development needs, and also the claims of the Assembly lovers for it being a language that gives one insights of the internal working of a computer. How relevant or useful is it to learn Assembly programming language in the current era? "
I thought Evil was the root of all programming languages? Wait, no, that's Microsoft. No, wait, Microsoft is the root of Evil.. Money... eh, forget about it.
First, for 90% of the calls to strcat() in real life, a more "efficient" coding replacement will be more error-prone and will not make the software faster enough to be perceptible by humans.
Second, a big percentage of folks who think they know how to be faster than strcat() have no clue how the disparity between processor speeds and memory fetches has increased over the years, rendering dumb ol' strcat() awfully fast. If the "more efficient" code that doesn't call strcat() causes a couple of main memory fetches, it may well be slower than a dumb ol' call to strcat() on that string that's still in cache.
Nobody knows nuthin' about efficiency unless they've measured.
Here here!
Where? Where?
http://www.straightdope.com/mailbag/mhear.html