Re:Moving the Linux Kernel to Modern C
by electroly on Thursday February 24, 2022 @05:38PM
(#30461317)
Clang can do it. Google ships clang-built Linux kernels in Android and ChromeOS.
[ Parent
| on HN ]
Re:Moving the Linux Kernel to Modern C
by seabrookmx on Thursday February 24, 2022 @07:22PM
(#30462236)
Also the Kernel used in the new Valve Steam deck.
Can clang compile vanilla kernel without Google's forks?
AFAIK it can. They actually spent quite a considerable amount of effort implementing all of the gcc extensions to do so. There is even documentation for that: https://www.kernel.org/doc/html/latest/kbuild/llvm.html
Re:Moving the Linux Kernel to Modern C
by electroly on Thursday February 24, 2022 @06:48PM
(#30461971)
Apparently OpenMandriva also uses a clang-built kernel, presumably not a Google fork. I have no personal knowledge about OpenMandriva though.
Do you consider the ClangBuiltLinux project [0] a Google fork?