[LLVMdev] Compile a project into LLVM Bitcode

Philip Ritchey pritchey at microsemi-wl.com
Fri May 20 07:50:20 PDT 2011


You can use Clang to compile source to bitcode:

clang -c hello.c -emit-llvm -o hello.bc

Hope that helps,
Philip

-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Julien Henry
Sent: Friday, May 20, 2011 10:42 AM
To: LLVM Developers Mailing List
Subject: [LLVMdev] Compile a project into LLVM Bitcode

Hi all,

I'm trying to compile projects into LLVM Bitcode files instead of 
executable binaries, without needing to change the Makefile and the 
configure script.

What is the simplest way of doing that ?

Thanks

Julien
_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list