I've gone back and forth on the ASM issue myself several times over the years.
I've programmed in (and enjoyed) C, C++, Pascal, Prolog, LISP, Visual Basic, Forth, and several ASMs. Many people will say that the sensible thing to do is to stick with C or maybe C++, code mostly in that, and leave ASM for the little speed-ups you need here and there. Yet there's something about ASM that keeps drawing me in!
I remember reading an article back around 1990 about assembly, and it mentioned a DOS program (maybe it was a linker) that was written in 100% assembly. It consistently beat the pants off of all its competitors, not because of any specific tweaks, but because the whole thing was written in ASM. The point the article made (and I've seen it reiterated a few times in other articles) was that using assembly to tweak the 2% of the slowest C code is all fine and well, but the real advantage of ASM programming comes in using it to write the whole thing. Thinking in assembler!
I'm not sure how much that applies today because compilers are truly pretty decent on the whole. Still, it reminds me of owning and riding a motorcycle. It's more dangerous than a car, and it's not as practical as a car... if it's raining, you'll get wet... if it's hot, you'll be hot... if it's cold, you'll be freezing... BUT! -- it's a hundred times more fun!!!!!
As I get older, the things I enjoy doing mean more to me than things I get done. I don't know if that makes much sense, but another way of putting it is: life's a journey, not a destination... enjoy the journey. Program in ASM and be proud! :alright:
I've programmed in (and enjoyed) C, C++, Pascal, Prolog, LISP, Visual Basic, Forth, and several ASMs. Many people will say that the sensible thing to do is to stick with C or maybe C++, code mostly in that, and leave ASM for the little speed-ups you need here and there. Yet there's something about ASM that keeps drawing me in!
I remember reading an article back around 1990 about assembly, and it mentioned a DOS program (maybe it was a linker) that was written in 100% assembly. It consistently beat the pants off of all its competitors, not because of any specific tweaks, but because the whole thing was written in ASM. The point the article made (and I've seen it reiterated a few times in other articles) was that using assembly to tweak the 2% of the slowest C code is all fine and well, but the real advantage of ASM programming comes in using it to write the whole thing. Thinking in assembler!
I'm not sure how much that applies today because compilers are truly pretty decent on the whole. Still, it reminds me of owning and riding a motorcycle. It's more dangerous than a car, and it's not as practical as a car... if it's raining, you'll get wet... if it's hot, you'll be hot... if it's cold, you'll be freezing... BUT! -- it's a hundred times more fun!!!!!
As I get older, the things I enjoy doing mean more to me than things I get done. I don't know if that makes much sense, but another way of putting it is: life's a journey, not a destination... enjoy the journey. Program in ASM and be proud! :alright: