Linked by Thom Holwerda on Mon 6th Aug 2012 21:50 UTC, submitted by iseyler
Thread beginning with comment 530025
To read all comments associated with this story, please click here.
To read all comments associated with this story, please click here.
Oh, those young days spent coding demos in Assembly , naively thinking nothing else would be needed.
Heh, I was coding all sorts of VGA-tricks and messing around with DOS internals, thinking I was an assembly guru. I did try to make an OS of my own, too, but I was way out of my depth. Then again, I was only 13 at the time and had quite poor access to any programming material.
These days I just don't use assembly anymore, there's no need for that on most applications as atleast GCC already produces better code than most people can do by hand.
Edited 2012-08-07 07:04 UTC
These days I just don't use assembly anymore, there's no need for that on most applications as atleast GCC already produces better code than most people can do by hand.
With modern processors it is also very hard to write Assembly code by hand that is able to match what compilers can achieve due to architectures with out-of-order execution, branch prediction, multiple cache levels, NUMA.
Plus many of the compiler code generation algorithms which were not possible to use in the old days due to memory restrictions, are nowadays part of most compilers.
Unless you're writing Assembly for embedded systems, with simpler architectures, there are too many factors for code optimization that a human being is able to track.




Member since:
2005-07-08
Nice that he has chosen the Intel syntax.

Since I used the PC since MS-DOS 3.3 days, the AT&T syntax always makes me wonder what I am looking at.
Oh, those young days spent coding demos in Assembly , naively thinking nothing else would be needed.
Started out with a freeware assembler, then moved to TASM and later on MASM. Eventually it was time to move to Turbo Pascal and use the inline assembler just for the hotspots.
I have quite a few books about PC low level architecture, as on those days that was the only way for me to get information.
My first book was from Peter Norton, "Assembly Language Book for the IBM PC".
For those planning to learn Assembly, the Zen books from Michael Abrash were great with all the low level hints.
Nowadays the processors have become too complex to be mastered by humans, still I am planning to learn some ARM.