Jump to content
  • Sign Up
×
×
  • Create New...

Linux kernel source expands beyond 40 million lines – it has doubled in size in a decade


Recommended Posts

  • Diamond Member

This is the hidden content, please

Linux kernel source expands beyond 40 million lines – it has doubled in size in a decade

It seemed inevitable that the Linux kernel sources would expand beyond 40 million lines early this year. Linux 6.13 was released early in January 2025, with 39,819,522 lines, and with the recent release of Linux 6.14 rc1 sources the figure has ballooned to 40,063,856 lines, notes Germany’s

This is the hidden content, please
(machine translated). This 40 million line milestone is double the line count of the Linux kernel sources in 2015.

This is the hidden content, please

(Image credit: Future)

The Linux kernel sources grow pretty fast, at around four hundred thousand lines of code every two months, and consist of not just code but comments, documentation, and even blank lines for structure/readability. It is also worth noting that much of the bulk of the kernel sources may be irrelevant to any particular computer or user.

A case in point about ‘bulk’ in the sources is provided by the code for various processor architectures, which weighs in at around 4.5 million lines. However, if your system just needs the x86 processor code (most PCs) the compiler will ignore much of that. The x86-specific source, for example, is less than half a million lines. Furthermore, the compiler should target your chosen x86 chip’s architecture, thus sidestepping even more code within that subset. What is true for processors is also true for other key component drivers in the Linux kernel source.

Even if you grab an off-the-shelf distribution, though, many drivers are compiled as modules and won’t load without the hardware they are designed for being present. One particularly large example is the source files from AMD. According to Heise’s pondering over the source files, AMD’s Radeon driver, documentation, and so on weigh in at around 5 million lines.

Considering the above, some will say the Linux kernel sources line count is an irrelevance. Yet others will have an urge to prune the code and any associated bulk. However, the tug-o-war between these factions favors the increased bloat side, with the width, breadth, and depth of hardware and software growing inexorably as time rolls on.

Speaking of Linux 6.14 rc1, the latest version comes with some nice optimizations and additions that may be of interest to readers who waiting for the year of Linux on the sidelines. For example, Linux 6.14 rc1 lets desktop vendors configure actions by recognizing the new Copilot key, it adds more game controller support to the XPad driver, it supports new audio hardware, it significantly

This is the hidden content, please
times on some systems, and it supports many more touch screens using Intel hardware.

Get Tom’s Hardware’s best news and in-depth reviews, straight to your inbox.



This is the hidden content, please

#Linux #kernel #source #expands #million #lines #doubled #size #decade

This is the hidden content, please

This is the hidden content, please

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Vote for the server

    To vote for this server you must login.

    Jim Carrey Flirting GIF

  • Recently Browsing   0 members

    • No registered users viewing this page.

Important Information

Privacy Notice: We utilize cookies to optimize your browsing experience and analyze website traffic. By consenting, you acknowledge and agree to our Cookie Policy, ensuring your privacy preferences are respected.