Slashdot Mirror


Linux Kernel Surpasses 10 Million Lines of Code

javipas writes "A simple analysis of the most updated version (a Git checkout) of the Linux kernel reveals that the number of lines of all its source code surpasses 10 million, but attention: this number includes blank lines, comments, and text files. With a deeper analysis thanks to the SLOCCount tool, you can get the real number of pure code lines: 6.399.191, with 96.4% of them developed in C, and 3.3% using assembler. The number grows clearly with each new version of the kernel, that seems to be launched each 90 days approximately."

6 of 432 comments (clear)

  1. assembler? by TheRealMindChild · · Score: 5, Informative

    *cough*assembly*cough*

    "assembler" is the tool, not the language.

    --

    "When life gives you lemons, don't make lemonade. Make life take the lemons back!" -- Cave Johnson
    1. Re:assembler? by hondo77 · · Score: 4, Informative

      Then again, maybe not.

      --
      I live ze unknown. I love ze unknown. I am ze unknown.
  2. Re:Um by binarylarry · · Score: 5, Informative

    Yeah but you can customize the Linux kernel. If you don't want features, just don't compile them in.

    It's easy, there's even a gui interface.

    Good luck compiling a custom NT kernel. :)

    --
    Mod me down, my New Earth Global Warmingist friends!
  3. Not as much as you'd think by djupedal · · Score: 4, Informative

    Since that many lines = approx. 125,000 pages, which = approx. 0.0175 terabytes, and... a LOC is approx. 18 TB, I'd say they have a ways to go...

  4. Re:Kernel Modules by mechsoph · · Score: 3, Informative

    not having to compile modules

    Uh, you don't compile modules. The distribution vendor does.

    actual real modularity on the binary level for true "modules"

    If you want a stable kernel module ABI, that only matters for binary-only modules (which are a bad idea). See vmware for how source-distributed modules can work fairly painlessly.

    meaning settings or whatnot that have to be compiled into the kernel, instead of being switches and modules that you can throw in and out of the kernel.

    What are you talking about?

    I don't think it's *all* modular,...as well as making it easier to swap stuff in and out.

    Most vendors compile generic kernels with just about all functionality put into kernel modules. What more do you want than modprobe, rmmod? Pretty buttons?

    so any increase in that helps by making the kernel easier to work on because you can have definite targets and functionality

    If you want a micro-kernel, go use QNX, hack on herd, or watch as Linux slowly steps in that direction. Maybe read some of the various flame wars on the topic and consider why herd hasn't made any significant progress in 15 years.

    In other words, actual driver modularity! So users can actually download and install drivers from off the intarwebz without having to compile them and Linux can actually, I dunno, be usable for 99% of users! Brilliant!

    Yeah...[/sarcasm]

  5. Re:What did sloccount say the kernel was worth? by bendodge · · Score: 4, Informative

    Ohloh has a COCOMO calculator, which spits out ~$181M if you pay coders $55,000 a year.

    http://www.ohloh.net/projects/linux
    http://en.wikipedia.org/wiki/COCOMO

    --
    The government can't save you.