(Click the public account above to follow quickly)
Source: Solidot
www.solidot.org/story?sid=54012
If you have good articles to submit, please click → here for details
At the Linux Plumbers Conference, Google’s kernel developers Greg Kroah-Hartman and Nick Desaulniers presented the progress of building the kernel with Clang.
Desaulniers stated that today’s Android user space is built with Clang, and Google wants to reduce the number of toolchains it needs to support. Currently, building the kernel with Clang mainly benefits Google, but there is reason to believe it will also benefit the broader community.
Clang provides a set of warnings that are different from GCC, and fewer bugs are clearly beneficial for all kernel users. Clang can also enhance additional tools such as control flow analysis, link-time optimization, and profile-guided optimization. Using different compilers to build code also helps filter out code that relies on undefined behavior.
Greg Kroah-Hartman stated that competition benefits everyone, and the new features introduced in GCC over the past five years are a result of competition with LLVM/Clang. He hopes the Linux kernel will also have competitors.
Did you gain something from reading this article? Please share it with more people
Follow ‘Linux Enthusiasts’ to enhance your Linux skills