[LLVMdev] compile linux kernel
ashish.bijlani at gmail.com
Sun Sep 28 00:07:23 CDT 2008
does that mean .o generated with gcc (.c -> .s and .s -> .o) will not
contain llvm ir?
i meant, final kernel bitcode ir arch independent and can be JIT with
any arch-specific backend. Is it not the case?
On Sat, Sep 27, 2008 at 10:43 PM, Andrew Lenharth <andrewl at lenharth.org> wrote:
> On Sat, Sep 27, 2008 at 8:08 PM, Ashish Bijlani
> <ashish.bijlani at gmail.com> wrote:
>> If I use GCC to generate asm-offsets.s file, then the build system go
>> ahead but fails when it generates .so files as Andrew pointed out.
> You have to generate this with gcc. .c -> .s and .s -> .o need gcc,
> .c -> .o can use llvm-gcc. The combination has to be fixed up in
> final linking.
>> Now, If the build systems generates .so files, then it will be
>> difficult o actually generate fully arch-independent kernel code,
>> isn't it?
> A llvm compiled kernel is in no way arch-independent. It is very very
> arch dependent.
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the LLVMdev