News
Zack's Kernel News
Chronicler Zack Brown reports on compiler optimizations and compatibility.
Compiler Optimizations and Compatibility
The relationship between the Linux kernel project and the other projects it depends on – like the various C compilers, or even standards bodies themselves, like POSIX – is odd and convoluted. For starters, those projects often depend on Linux, too. In the event of a dispute, who wins? In general, that question is answered peacefully, by the Linux kernel having certain minimum version requirements for compilers and identifying specific later compiler versions as unsupported on an as-needed basis. This at least keeps the world moving smoothly.
This time the conversation didn't involve a dispute between the kernel and the compiler folks, but it did involve finding a way for the kernel to work around compiler issues.
The whole thing started when Marco Elver from Google enabled the Clang compiler's thread-safety analysis feature, which tries to track the way the kernel locks certain resources so they can be used by one process and then unlocks them when that process has finished. Thread handling is an insanely difficult thing to debug. It also needs to run really fast, because it underpins the kernel's ability to do many things at once without completely trashing all our data or making us wait seconds for the screen to update. So tools like Clang try to do as much as they can to automate testing.
[...]
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Framework Laptop 13 Pro Competes with the Best
Framework has released what might be considered the MacBook of Linux devices.
-
The Latest CachyOS Features Supercharged Kernel
The latest release of CachyOS brings with it an enhanced version of the latest Linux kernel.
-
Kernel 7.0 Is a Bit More Rusty
Linux kernel 7.0 has been released for general availability, with Rust finally getting its due.
-
France Says "Au Revoir" to Microsoft
In a move that should surprise no one, France announced plans to reduce its reliance on US technology, and Microsoft Windows is the first to get the boot.
-
CIQ Releases Compatibility Catalog for Rocky Linux
The company behind Rocky Linux is making an open catalog available to developers, hobbyists, and other contributors, so they can verify and publish compatibility with the CIQ lineup.
-
KDE Gets Some Resuscitation
KDE is bringing back two themes that vanished a few years ago, putting a bit more air under its wings.
-
Ubuntu 26.04 Beta Arrives with Some Surprises
Ubuntu 26.04 is almost here, but the beta version has been released, and it might surprise some people.
-
Ubuntu MATE Dev Leaving After 12 years
Martin Wimpress, the maintainer of Ubuntu MATE, is now searching for his successor. Are you the next in line?
-
Kali Linux Waxes Nostalgic with BackTrack Mode
For those who've used Kali Linux since its inception, the changes with the new release are sure to put a smile on your face.
-
Gnome 50 Smooths Out NVIDIA GPU Issues
Gamers rejoice, your favorite pastime just got better with Gnome 50 and NVIDIA GPUs.
