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
-
Container-Based Fedora Hummingbird Designed for Agent-First Builders
Fedora Hummingbird brings the same approach to the host OS as it does to containers to level up security.
-
Linux kernel Developers Considering a Kill Switch
With the rise of Linux vulnerabilities, the kernel developers are now considering adding a component that could help temporarily mitigate against them… in the form of a kill switch.
-
Fedora 44 Now Gaming Ready
The latest version of Fedora has been released with gaming support.
-
Manjaro 26.1 Preview Unveils New Features
The latest Manjaro 26.1 preview has been released with new desktop versions, a new kernel, and more.
-
Microsoft Issues Warning About Linux Vulnerability
The company behind Windows has released information about a flaw that affects millions of Linux systems.
-
Is AI Coming to Your Ubuntu Desktop?
According to the VP of Engineering at Canonical, AI could soon be added to the Ubuntu desktop distribution.
-
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.
