[LLVMdev] Compile a linux kernel with LLVM?
ymxia at nudt.edu.cn
ymxia at nudt.edu.cn
Thu Jul 7 02:45:58 PDT 2005
Hi,
I want to check some properties of linux kernel with llvm, but I don't know how to compile a
linux kernel to an llvm's .bc file. I have let llvm's gcc front-end ignore inline assembly by
modifying cfrontend/src/gcc/llvm-expand.c, and replace CC/as/ar in the Makefile of the kernel
with llvm-gcc/llvm-as/llvm-ar. However, the linux's "make" reports errors: "File format not
recognized" and "not ELF".
Some people did this before?
Thanks.
More information about the llvm-dev
mailing list