⬆️ ⬇️

Linux kernel exceeded 10 million lines

A simple analysis of the latest version of the Linux 2.6.27 kernel shows that the amount of code in it exceeded 10 million lines . True, this number includes empty lines, comments and text files.



If you filter the result using SLOCCount , a deeper analysis yields the exact number of useful lines of code: 6,399,191. Of these, 96.4% is written in C, and 3.3% in assembly language, Perl takes the third place (0.1% ). The number of lines increases with each new version of the kernel , which is released approximately every 90 days.



More than half the amount of code now is hardware drivers, in second place is the arch / directory, which contains code for various architectures supported by Linux.

')

According to a hypothetical SLOCCount estimate, to rewrite Linux from scratch, it takes 200 programmers to work for nine and a half years and will cost $ 268 million (at an average programmer's salary). The cost of the core also grows with each update.



via Slashdot

Source: https://habr.com/ru/post/43023/



All Articles