Linux source code passes 10 million lines

Oct 23, 2008 6:48 AM
Tags: linux | source | code | passes | 10 | million | lines

The number of lines of source code comprising Linux kernel files recently surpassed the ten million mark after the latest release of Linux version 2.6.27, an analysis has found.

However, that count includes blank lines, comments and text files included in a full checkout of the kernel source.

Counted slightly differently, the number of lines of actual text is "only" over nine million, but we rather like that larger figure of ten million, because white-space really is important for code readability and, well... it's a nice round number..

As with all long-term programming projects, the size of the Linux kernel code base varies over time, as old code is discarded and replaced.

Newer features and functions are constantly being added, though, so the overall size of the Linux kernel continually increases.

Some analyses of the Linux kernel code base using David Wheeler's SLOCCount program yield some interesting facts.

The acronym "SLOC" stands for Source Lines of Code.

It finds only 6,399,191 lines of source code, since it doesn't count blank lines, comments and other input.

Categorisation by language finds that the overwhelming majority of the Linux kernel code is written in ANSI C, at 96.39 per cent, with Assembly Language accounting for almost all of the rest at 3.32 per cent.

Other languages used in the kernel source files, in descending order of the number of lines of code, include Perl, C++, Yacc, Sh(ell), Lex, Python, LISP, Pascal and Awk.

More interestingly perhaps, SLOCCount also produces an estimation of the Linux kernel source code's value, that is, what it might cost to redevelop the code base from scratch, using the COCOMO development model.

SLOCCount estimates that it would take a team of over 200 developers about nine and a half years to rewrite the Linux kernel from scratch.

Based up a four year old assumption of programmers' average salary level, SLOCCount calculates that would cost nearly US$268 million.

Given inflation and adding in management overhead, US$500 million might be a fair estimate of what it might actually cost a proprietary software vendor to redevelop Linux.

In fact, thousands of programmers have contributed to developing the Linux kernel, over a period of more than 15 years.

And in terms of what it costs one to download a full Linux distribution, they did for free.

theinquirer.net (c) 2009 Incisive Media


  • Email a Friend
  • Print Page
Linux source code passes 10 million lines
 
Comments

Be the first to comment on this article.
Thoughts on this article? Add a comment below.
Comment:
Want to participate in the discussion?
Or log in now to comment
 
 
 
Top Stories
Telstra outlines LTE trial roadmap
Still gas left in HSPA tank.
 
Feds arrive at $2500 to connect fibre to new homes
Greenfields legislation introduced to Parliament.
 
iiNet looks to close gaps in AFACT judgement
Tries to see off future High Court appeal.
 

Latest VideosSee all videos »

Latest Comments
"Why can't Conroy just buy a direct connection from Telstra just like any other customer? Why ..."
by FLashy Mar 20, 2010 3:57 AM
 
"@zag - i've got to correct all the mistakes you've made in your comment. First off, the ..."
by hsvandrew Mar 20, 2010 12:26 AM
 
"The other one was 6500 movies , and that's undoubtedly just the tip of an iceberg."
by Ace Mar 19, 2010 11:15 PM
 
"I don't know what's more disturbing about this story. That someone would go "sure I'll help you" ..."
by Cham Mar 19, 2010 9:08 PM
 
"Well that's a worry, may have to go back to the fox when Redmond try to cheat their XP committmen..."
by btone Mar 19, 2010 8:18 PM
1) HTC Magic5 plans 5%
2) Nokia E7228 plans 22%
3) Nokia E7147 plans 2%
4) Nokia N9740 plans 15%
5) Sony Ericsson C90331 plans 5%
1) Netspace36 plans 50%
2) 37 plans 50%
3) Optus41 plans 11%
4) Vodafone7 plans 7%
5) Telstra BigPond30 plans 3%

Mobiles | Broadband | Credit Cards

Haymarket - iTnews