3 ms·
Can you remind me why LLVM/CLANG can't compile the linux kernel? Is it dependance on GCC extensions?
by bogomipz 10y ago
Can you remind me why LLVM/CLANG can't compile the linux kernel? Is it dependance on GCC extensions?
- justincormack 10y agoI think those are mostly fixed for C code, but assembly still has issues. Otherwise dependence on exact gcc behaviour is an issue.
- bogomipz 10y agothanks
- valarauca1 10y agoTL;DR Yeah GCC specific compiler compiler extensions. GCC has some platform specific symbols that are really just functions wrapping assembly. Most of this is related to crypto and AESNI (built in x86 AES operations). This breaks some crypto, which breaks some wifi/file system stuff. XEN driver uses a GCC specific ASM macro for counting NUMA Nodes and CPU cores. Dynamic compiling within the kernel for say BSD Packet Filtering JIT requires LLVM Compiler-RT have a custom wrapper. Also some libgcc specific header information.