TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Linux kernel exceeds 15 million lines of code

50 点作者 gaoprea超过 13 年前

8 条评论

karterk超过 13 年前
Can someone explain how such a HUGE codebase is maintained and new people get acquainted with it? I understand the distributed nature of development, but still, this seems like LOTS of code especially for someone new and who wants to get started in terms of contributing.
评论 #3460766 未加载
评论 #3460791 未加载
评论 #3460808 未加载
评论 #3461031 未加载
igniteflow超过 13 年前
Non-code lines shouldn't be included as they don't get compiled, otherwise you are just penalising for documentation
评论 #3461506 未加载
gizzlon超过 13 年前
Would be interesting to see comparable numbers for other operating systems.
评论 #3460518 未加载
评论 #3460554 未加载
ComputerGuru超过 13 年前
So freaking what?<p>EDIT<p>It's not a valid metric. 15 million can be a lot or a little. It's all relative. This is 15 million LoC of plain C code. This is code that includes thousands of device-specific routines, but even if it didn't, what are you comparing it to?<p>Let's say it is too long even compared to other C kernels w/ device drivers. What price are you putting on well-written code? Do you know how many of those lines are hints to the compiler? Those don't even get compiled.
monochromatic超过 13 年前
Pretty arbitrary benchmark. Reminds me of this.<p><a href="http://xkcd.com/1000/" rel="nofollow">http://xkcd.com/1000/</a>
helmut_hed超过 13 年前
Has anyone out there done refactoring experiments? Perhaps as an academic exercise? I don't know the kernel well enough to say for sure but I do recall a fair bit of duplicated code in e.g. the drivers. It would be interesting to see what could be done there.
jiggy2011超过 13 年前
15 MLOC?<p>That seems like allot , this must include allot of things that can optionally be compiled into the kernel?<p>Last time I browsed the kernel source tree it looked like a few 100KLOC to me.
Craiggybear超过 13 年前
Like the article says, something like 75% of all of that is driver specific or related to filesystems. You can still compile a minute little kernel for embedding that will be a fraction of the size of the full kernel. And there's still quite a lot of old cruft in there that <i>could</i> be left out.<p>Even so, if true, it does seem to be getting quite bloaty. Still, it has to cover a lot of ground nowadays in terms of hardware.
评论 #3461042 未加载