3 ms·
It's also worth considering that only a fraction of the kernel's LOC are even compiled in the average distribution's kernel (are the LOC dedicated to Itanium, A
by nitrogen 15y ago
It's also worth considering that only a fraction of the kernel's LOC are even compiled in the average distribution's kernel (are the LOC dedicated to Itanium, Alpha and PA-RISC support really useful to Ubuntu?).
Does the kernel spend more lines of code on platform support or on drivers? I was under the impression that drivers made up the vast majority of the kernel, most of which are enabled in distribution kernels.
Sloccount seems to confirm this on kernel 2.6.35:
4796735 drivers ansic=4791978,yacc=1688,asm=1428,perl=792,lex=779,
sh=57,awk=13
1677610 arch ansic=1449312,asm=226905,sh=674,awk=470,pascal=116,
perl=58,python=45,sed=30