<br><br><div class="gmail_quote">On Fri, Dec 2, 2011 at 4:07 PM, Rahil Rahimian <span dir="ltr"><<a href="mailto:rahil_rahimian@yahoo.com">rahil_rahimian@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div style="color:#000;background-color:#fff;font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi ,<br></div><div><br></div><div>I want to create a bc file by llvm-gcc, and need to pass a input file when create this file,</div>

<div>how can i do it?I saw options in "<strong style="color:rgb(0,0,0);font-family:Arial,Helvetica;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">llvm-gcc</strong><span style="color:rgb(0,0,0);font-family:Arial,Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:16px;display:inline!important;float:none"><span> </span>[</span><em style="color:rgb(0,0,0);font-family:Arial,Helvetica;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">options</em><span style="color:rgb(0,0,0);font-family:Arial,Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium;display:inline!important;float:none">]<span> </span></span><em style="color:rgb(0,0,0);font-family:Arial,Helvetica;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:16px">filename" but it could not help me.</em></div>

<div><br></div></div></div></blockquote><div><br></div><div><font size="4">llvm-gcc -emit-llvm -c foo.c -o foo.bc</font></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div style="color:#000;background-color:#fff;font-family:times new roman,new york,times,serif;font-size:12pt"><div><em style="color:rgb(0,0,0);font-family:Arial,Helvetica;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:16px"></em></div>

<div><em style="color:rgb(0,0,0);font-family:Arial,Helvetica;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:16px">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. </em></div><div><br></div></div></div></blockquote><div><br></div><div><span style="font-size: large; ">llvm-gcc -emit-llvm -c main.c foo.c -combine -o main.bc</span></div>

<div><span style="font-size: large; "><br></span></div><div><span style="font-size: large; ">Do you mean this?</span></div><div><span style="font-size: large; "><br></span></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div style="color:#000;background-color:#fff;font-family:times new roman,new york,times,serif;font-size:12pt"><div><em style="color:rgb(0,0,0);font-family:Arial,Helvetica;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:16px"></em></div>

<div><br><em style="color:rgb(0,0,0);font-family:Arial,Helvetica;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:16px"></em></div>

<div><em style="color:rgb(0,0,0);font-family:Arial,Helvetica;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:16px">tanks,<br>

</em></div></div></div><br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><span style="font-family:arial, sans-serif;font-size:11px;background-color:rgb(255, 255, 255)">Yours truly,</span><br>Zhang Zuyu(张祖羽)<br><br>-----------------------------------------------------------<br>

College of Computer Science and Technology, Harbin Engineering University</div>
<div><br></div><div style="zoom:100%"></div><br>