Linked by Thom Holwerda on Thu 7th Oct 2010 19:08 UTC, submitted by poundsmack

Thread beginning with comment 444661
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
There is necessarily at least a part written in assembly. Consider hardware-specific features like paging : you need CPU-specific instructions to access them.
Correct. It's however surprisingly little assembly you need. You can just write very small, specific functions and call them from some higher-level code and you end up with only a few hundred lines of actual assembly code. I too used plain C in my kernel to do all the rest, just a few scattered assembler functions when something couldn't be done in any other way.
Member since:
2010-03-08
There is necessarily at least a part written in assembly. Consider hardware-specific features like paging : you need CPU-specific instructions to access them.