[llvmlinux] Linux Kernel LLVM IR

Marcelo Sousa marceloabsousa at gmail.com
Tue Mar 5 13:35:13 UTC 2013


That doesn't really work because the -emit-llvm is going to overwrite
previous .o files generated. I think I really need to change the
linux/Makefile somehow to generate a .bc and a .o from a .c file.

Any insights on this would be very much appreciated,

On Tue, Mar 5, 2013 at 12:50 PM, Behan Webster
<behanw at converseincode.com> wrote:
> On 03/05/13 07:30, Marcelo Sousa wrote:
>> Hi,
>> That doesn't seem right. My intuition is to change the actual Makefile
>> in the linux directory. What do you think?
> Indeed. You need to change arch/arm/bin/make-kernel.sh script and add a
> second call to clang with the -emit-llvm
> To build the kernel you still need to generate the .o files so the link
> stages work.
> Behan
> --
> Behan Webster
> behanw at converseincode.com

More information about the LLVMLinux mailing list