LLVM/Clang Can Work Fine As A GCC Replacement For Linux Distributions
While the performance of LLVM/Clang is on-par with GCC these days on both x86_64 and AArch64 and the C/C++ support is very robust compared to many years ago, most Linux distributions continue using the GCC compiler and GNU toolchain by default. OpenMandriva is a well known Linux distribution that for several years has been a Clang-built Linux distribution while for three years now the Chimera Linux distribution has also been relying exclusively on an LLVM toolchain.
Daniel Kolesa with the Chimera Linux project presented at FOSDEM 2024 yesterday on building a Linux distribution using LLVM. Chimera Linux has been using exclusively an LLVM-based toolchain -- the Clang C/C++ compiler as well as compiler-rt and libc++ and other LLVM sub-projects.
Chimera Linux has been successfully using this LLVM toolchain for targeting five CPU architectures and LLVM has proven itself capable of taking on the job. While it's not been without obstacles, the effort has proven that LLVM can be successfully used as a toolchain for building Linux distributions.
Chimera Linux has found the link-time optimization (LTO) support to be better, security hardening features of the compiler to be in great shape, and that toolchain patching is inline with GCC.
Those wanting to learn more about Daniel Kolesa's experiences in using the LLVM toolchain for compiling a complete Linux distribution can find his FOSDEM 2024 presentation assets via FOSDEM.org. Those wanting to learn about the Chimera Linux non-GNU Linux distribution itself can do so at Chimera-Linux.org.
Daniel Kolesa with the Chimera Linux project presented at FOSDEM 2024 yesterday on building a Linux distribution using LLVM. Chimera Linux has been using exclusively an LLVM-based toolchain -- the Clang C/C++ compiler as well as compiler-rt and libc++ and other LLVM sub-projects.
Chimera Linux has been successfully using this LLVM toolchain for targeting five CPU architectures and LLVM has proven itself capable of taking on the job. While it's not been without obstacles, the effort has proven that LLVM can be successfully used as a toolchain for building Linux distributions.
Chimera Linux has found the link-time optimization (LTO) support to be better, security hardening features of the compiler to be in great shape, and that toolchain patching is inline with GCC.
Those wanting to learn more about Daniel Kolesa's experiences in using the LLVM toolchain for compiling a complete Linux distribution can find his FOSDEM 2024 presentation assets via FOSDEM.org. Those wanting to learn about the Chimera Linux non-GNU Linux distribution itself can do so at Chimera-Linux.org.
43 Comments