Re:Ask HN: What is hand-coded assembly language used for the...
by rythie on Monday November 02, 2009 @07:28AM
(#916631)
It's used in bits of kernel programming - often because there is no other way to do the task.
[ Parent
| on HN ]
Re:Ask HN: What is hand-coded assembly language used for the...
by tptacek on Monday November 02, 2009 @12:11PM
(#917241)
Modern kernels have very little assembly, outside of things like locore. They've heavily abstracted away the things you'd normally write in assembly, like modifying MSRs; also, so much of what you do now is simply memory mapped.
In all of xnu, not counting AES, there are ~17kloc in x86 assembly, most of it in osfmk/i386 --- where no normal developer is ever going to go. There are over 730kloc in C.