[LLVMdev] llvm-gcc

zhangzuyu hitzzy at gmail.com
Fri Dec 2 02:11:14 PST 2011


On Fri, Dec 2, 2011 at 4:07 PM, Rahil Rahimian <rahil_rahimian at yahoo.com>wrote:

> Hi ,
>
> I want to create a bc file by llvm-gcc, and need to pass a input file when
> create this file,
> how can i do it?I saw options in "*llvm-gcc* [*options*] *filename" but
> it could not help me.*
>
>
llvm-gcc -emit-llvm -c foo.c -o foo.bc



> **
> *I have an another problem too. my program contains some C file , that
> main function use those, but i don't know how create bc file with regard to
> other file. *
>
>
llvm-gcc -emit-llvm -c main.c foo.c -combine -o main.bc

Do you mean this?



> **
>
> **
> *tanks,
> *
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>


-- 
Yours truly,
Zhang Zuyu(张祖羽)

-----------------------------------------------------------
College of Computer Science and Technology, Harbin Engineering University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111202/1c3c9dc3/attachment.html>


More information about the llvm-dev mailing list