Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
electroly
on Feb 24, 2022
|
parent
|
context
|
favorite
| on:
Moving the Linux Kernel to Modern C
Clang can do it. Google ships clang-built Linux kernels in Android and ChromeOS.
seabrookmx
on Feb 25, 2022
|
next
[–]
Also the Kernel used in the new Valve Steam deck.
lupire
on Feb 24, 2022
|
prev
[–]
Can clang compile vanilla kernel without Google's forks?
elevader
on Feb 25, 2022
|
parent
|
next
[–]
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
electroly
on Feb 24, 2022
|
parent
|
prev
|
next
[–]
Apparently OpenMandriva also uses a clang-built kernel, presumably not a Google fork. I have no personal knowledge about OpenMandriva though.
karlding
on Feb 25, 2022
|
parent
|
prev
|
next
[–]
Do you consider the ClangBuiltLinux project [0] a Google fork?
[0]
https://clangbuiltlinux.github.io/
gsnedders
on Feb 25, 2022
|
parent
|
prev
[–]
Clang 9.0+ & Linux 5.3+ work for x86_64; I believe it's been possible to compile arm64 for longer.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: