News for hackers. Stuff that matters.
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.
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.

Re:Ask HN: What is hand-coded assembly language used for the... by rythie on Monday November 02, 2009 @05:35PM (#918122)
I wasn't implying there was a lot, just that sometimes that's the only way.
Re:Ask HN: What is hand-coded assembly language used for the... by tptacek on Monday November 02, 2009 @07:30PM (#918289)
I'm just saying, even as a kernel dev, you're unlikely to need to write things in assembly.