Linked by Thom Holwerda on Mon 6th Aug 2012 21:50 UTC, submitted by iseyler
General Development I asked for more of this, and I got it. "There has been much interest in assembly lately (whether the real 6502, or the fictional DCPU-16; I even created my own virtual 8-bit CPU called i808 in 2007), but none of this attention focuses on the architecture that is most popular in today's computers. If you are reading this on a desktop, laptop, or server then your computer is most likely using x86-64 (or x86). x86-64 is the 64-bit superset of the 32-bit x86 architecture and any modern CPU from AMD or Intel supports it. This document will focus on the most used parts of x86-64."
Permalink for comment 530296
To read all comments associated with this story, please click here.
RE[7]: Uh?
by ilovebeer on Wed 8th Aug 2012 14:51 UTC in reply to "RE[6]: Uh?"
Member since:

Linux is not the only kernel in town, and not all provide C API abstractions to access the hardware.

No, of course not. I used only one example.

Sure, it may be that he never needed, but if he is writing drivers, for sure he will eventually need to get either touch Assembly or have someone else do it.

He's been paid to write drivers for over 10 years (probably closer to 15) and that has not been true yet.

Linux kernel version 3.4.7 driver tree has

- 8 Assembly files;
- 58 C files making use of inline Assembly;

So in other words, only a small minority of drivers in the Linux kernel are using asm, which makes my point again that asm is not always a must.

If you care, I can also list use cases for every single point I've listed on my previous comment.

It's not very hard to cite real situations, or dream ones one that asm would be needed. The point is that you said asm is a must -- you did not say it's a must just in certain situations. When I say it's untrue that asm is a must for at least half the things on your list, I am not wrong. You even support this fact yourself (see above).

I never said asm is never needed, but you did say it always is and that is incorrect.

Reply Parent Score: 3