You realize that you can leave comments in the asm code right? The only reason you might find it harder to read is if you don't understand the machine architecture.
Usually the C reference implementation comes first, then when it's deemed too slow an assembler version follows. So to port to another CPU you just use the C code, and if it runs too slow on that architecture you write another asm version.
A real programmer deals with it and figures the code out anyway. Today's buzzword-driven coders whine and look for a prettier language at a higher level to work at. Grow up, kid.
9 comments
1 u/aileron_ron 15 Sep 2015 19:15
I feel left out,basic, html was all i learned. Long ago on DOS
1 u/Drenki 15 Sep 2015 21:47
Whoa, this looks like it will be a heavy read. May have to save it for the weekend.
1 u/Drenki 17 Sep 2015 04:33
But then how will NSA inject backdoors if you do the assembly by hand?
0 u/weezkitty 15 Sep 2015 19:12
With the trade off of it being much harder to read and debug and unportable.
I'll take the speed hit of higher level languages to have easier to maintain code myself.
3 u/taxation_is_slavery 15 Sep 2015 19:23
You realize that you can leave comments in the asm code right? The only reason you might find it harder to read is if you don't understand the machine architecture.
Usually the C reference implementation comes first, then when it's deemed too slow an assembler version follows. So to port to another CPU you just use the C code, and if it runs too slow on that architecture you write another asm version.
3 u/weezkitty 15 Sep 2015 19:36
Yes, you can leave comments. It is still much harder to follow ASM logic.
A long list of simple operations becomes quickly overwhelming for a human viewer.
-1 u/coldacid 16 Sep 2015 17:21
A real programmer deals with it and figures the code out anyway. Today's buzzword-driven coders whine and look for a prettier language at a higher level to work at. Grow up, kid.