[LLVMdev] Can we use llvm-gcc to compile large project and generate IR?
gausszhch at gmail.com
Mon Sep 14 01:32:29 PDT 2009
I have written a pass to do some inter-procedure work. Then I tried to
apply it to currently existing software. But I failed to compile most of
them using llvm-gcc.
When I run * ./configure CC=llvm-gcc CFLAGS="-emit-llvm -c"*, it
reports "*cannot run C compiled programs*" and so on and then exit.
( I use CFLAGS="-emit-llvm -c" to produce LLVM bitcode so that my pass can
run on it. )
My solution is using the default CC and CFLAGS to *configure*, and before we
*make*, I write a shell script to replace the default gcc. This script will
invoke *llvm-gcc* later and pass arguments "*-emit-llvm -c*" to the
However, there still exists many errors when I *make*, many of them are very
What's wrong here? It confused me a few days. Can we use llvm-gcc to
compile large project and generate IR? How?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev