[LLVMdev] llvm-gcc

Rahil Rahimian rahil_rahimian at yahoo.com
Fri Dec 2 03:50:29 PST 2011


Tanks for reply :)

llvm-gcc -emit-llvm -c foo.c -o foo.bc

I want to pass a input file to foo.c that contains a picture. how can do it?



________________________________
 From: zhangzuyu <hitzzy at gmail.com>
To: Rahil Rahimian <rahil_rahimian at yahoo.com> 
Cc: "llvmdev at cs.uiuc.edu" <llvmdev at cs.uiuc.edu> 
Sent: Friday, December 2, 2011 1:41 PM
Subject: Re: [LLVMdev] llvm-gcc
 




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/50f0776d/attachment.html>


More information about the llvm-dev mailing list