There's Interest In Building The Linux Kernel With Clang

Published on April 05, 2012
Written by Michael Larabel
Page 1 of 3
Discuss This Article

There's growing interest in being able to build the mainline Linux kernel with the LLVM/Clang compiler as an alternative to the kernel's long-standing love-affair with GCC.

Mark Charlebois and David Kipping of Qualcomm talked this morning at this week's Linux Foundation Collaboration Summit about their interest in LLVM and Clang for the ARM platform, per Qualcomm's obvious interests. Additionally, Mark Charlebois has been working hard at getting the mainline Linux kernel to build under LLVM/Clang for the ARM architecture.

For those that don't remember, in late 2010 there was the original undertaking of using LLVM Clang to build the Linux kernel. When not building all kernel drivers and other components, plus applying some out-of-tree patches, there was success in building a Clang-ified Linux kernel.

Bryce Lelbach was the developer working on making Clang supported by the Linux kernel. At last year's Linux Foundation Collaboration Summit he presented on this work during the LLVM track, but since then there's been really nothing to report on the matter. Building the mainline Linux kernel with a mainline LLVM/Clang compiler is still not possible.

As far as why Qualcomm's Innovation Center is now getting behind LLVM/Clang for the Linux kernel, there's several reasons, among which is they've always been fond towards LLVM. Of the benefits they see for bringing up their ARM Linux kernel on Clang is that there's better diagnostics (error reporting / warnings, catching things GCC doesn't), Clang provides some level of "fix-it hints", and Clang's static analyzer is extremely powerful.

Mark Charlebois also mentioned how Qualcomm likes LLVM's flexibility, targeting all "cores" of ARM SoCs, having one code generator for many different environments, etc. "We want a single compiler toolchain."

<< Previous Page
1
Latest Hardware Reviews
  1. Sumo Lounge Emperor
  2. Gallium3D Continues Improving OpenGL For Older Radeon GPUs
  3. 15-Way Open vs. Closed Source NVIDIA/AMD Linux GPU Comparison
  4. Nouveau vs. NVIDIA Linux Comparison Shows Shortcomings
Latest Software Articles
  1. Intel Linux OpenGL Driver Leading Over Apple OS X
  2. The Cost Of Ubuntu Disk Encryption
  3. Btrfs vs. EXT4 vs. XFS vs. F2FS On Linux 3.10
  4. AMD Radeon R600 GPU LLVM 3.3 Back-End Testing
Latest Linux News
  1. AMD RadeonSI Gallium3D Begins Simple CL Demos
  2. Intel Shows Off GNOME3-Based Tizen Shell
  3. Linux Desktop Security Could Be A Whole Lot Better
  4. KDE 4.11 Will Be The Last Major KDE4 Workspaces Feature Release
  5. New NVIDIA Linux Driver Supports The GeForce GTX 780
  6. Chrome 28 To Offer More Speed Improvements
  7. Digia Announces "Boot To Qt" Project
  8. X.Org Libraries Hit By Round Of Security Issues
  9. Wayland's Weston Gets Output Scaling Support
  10. Raspberry Pi Gets New Wayland Weston Renderer
  11. Debian GNU/Hurd 2013 Release Brings New Packages
Latest Forum Talk
  1. VIA KMS Driver Now Supports HDMI Output
  2. AMD RadeonSI Gallium3D Begins Simple CL Demos
  3. Intel Shows Off GNOME3-Based Tizen Shell
  4. AMD Radeon R600 GPU LLVM 3.3 Back-End Testing
  5. Linux Desktop Security Could Be A Whole Lot Better
  6. Microsoft's zombie attacks Android (again)
  1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Motherboards
  5. Peripherals
  6. Processors
  7. Software
  8. Operating Systems
  9. All Articles
  1. Linux Benchmarking
  2. OpenBenchmarking.org
  3. Phoronix Test Suite