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
-
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.
-
System76 Retools Thelio Desktop
The new Thelio Mira has landed with improved performance, repairability, and front-facing ports alongside a high-quality tempered glass facade.
-
Some Linux Distros Skirt Age Verification Laws
After California introduced an age verification law recently, open source operating system developers have had to get creative with how they deal with it.
-
UN Creates Open Source Portal
In a quest to strengthen open source collaboration, the United Nations Office of Information and Communications Technology has created a new portal.
-
Latest Linux Kernel RC Contains Changes Galore
Linux kernel 7.0-rc3 includes more changes than have been made in a single release in recent history.
-
Nitrux 6.0 Now Ready to Rock Your World
The latest iteration of the Debian-based distribution includes all kinds of newness.
-
Linux Foundation Reports that Open Source Delivers Better ROI
In a report that may surprise no one in the Linux community, the Linux Foundation found that businesses are finding a 5X return on investment with open source software.
