[LLVMdev] compile linux kernel

P. Durante shackan at gmail.com
Sun Sep 28 14:49:51 PDT 2008


> Now, If the build systems generates .so files, then it will be
> difficult o actually generate fully arch-independent kernel code,
> isn't it?
>

Even if the LLVM IR itself was guaranteed to be
architecture-transparent (it isn't), all architectures use different
kernel code, there's no way to make a vmlinux binary which has the
code for all the architectures at once.
Even compiling the UML (using ARCH=um), where the kernel runs in
userspace like a regular program, won't make a 'universal binary' as
it depends on some x86[_64] inline assembly.



More information about the llvm-dev mailing list