3 ms·
> "Linux is 15+M lines of code" But how much of it is the actual OS versus device drivers and other "extensions" of the main kernel? I assume there is somewher
by dep_b 6y ago
> "Linux is 15+M lines of code"
But how much of it is the actual OS versus device drivers and other "extensions" of the main kernel? I assume there is somewhere a core that everything plugs into that has more or less the same functionality as what was done in the 9000 lines of the original Unix v6 code and only uses a fraction of all of the code of the kernel.
- rcxdude 6y agoIt's almost entirely (80%) drivers. Next heaviest is architecture specific code, then filesystems, networking, sound, documentation, and then the actual core of the kernel. A minimal build of linux uses about 300k lines of code. https://unix.stackexchange.com/questions/223746/why-is-the-linux-kernel-15-million-lines-of-code https://unix.stackexchange.com/questions/223746/why-is-the-l... So it's still substantially heavier than would be easy to study, but you could probably still fit the core into your head (I've been able to deeply understand systems with similar LOC counts, though there's probably substantial differences in 'density' between codebases)