Loading...

Building The Linux Kernel With Clang Is Becoming Popular Again

In Summary : Years ago there was much interest in the ability to build the mainline Linux kernel with the LLVM Clang compiler as an altern...

In Summary :

Years ago there was much interest in the ability to build the mainline Linux kernel with the LLVM Clang compiler as an alternative to using the GCC compiler in order to ensure better code portability, shaking out GCC'isms, possible build speed improvements, and other benefits. But in recent years it seems to have waned in interest but now things are heating up again.

After the formal LLVMLinux project faded away for building the Linux kernel with the LLVM stack and what feels like years since the last presentation on the topic, at last week's Linux Plumbers Conference were three presentations on the topic.

As has been the case for a while, most of the LLVM Clang + Linux effort has been in regards to ARM/AArch64 architectures but one BoF session last week was also in regards to rejuvenating the effort in the x86_64 space. The Clang compiler has been quite popular with the ARM vendors and LLVM's more liberal license has also been attractive to them.

Nick Desaulniers and Greg Hackmann of Google was one of those talking about Clang'ing the Linux kernel at LPC 2018. The reasons he expressed for why they like building the kernel with Clang is to make use of the latest compiler tech, LLVM's various analyzer tools, better warning coverage, shaking out undefined behavior, improving both code-bases (LLVM and Linux), and offering one binary for cross-compiling.  [...]

kindly refer the following link as follow up :
https://www.phoronix.com/scan.php?page=news_item&px=Clang-Kernel-2018

Post a Comment

emo-but-icon

Home item

ADS

Popular Posts

Random Posts

Flickr Photo

StatCounter

View My Stats