<br><div class="gmail_quote">2012/4/10 15102925731 <span dir="ltr"><<a href="mailto:zhenkaixd@126.com">zhenkaixd@126.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="line-height:1.7;font-size:14px;font-family:arial"> Hi, my friends<br><br><br>I know there is a difference between compiling a linux module and a simple helloworld programme.<br>If I compile a helloworld.c file, the command is <br>
<b>"clang -O3 -emit-llvm hello.c -c -o hello.bc"</b><br>But what the command should be if I want to compile a linux module into a .bc file? (I know it may be an easy question to you guys, but I really don't know where to find the answer on <a href="http://llvm.org" target="_blank">llvm.org</a>.)<br>
</div></blockquote><div><br></div><div>What do you mean by linux module?  A shared library (.so)? A kernel module (.ko)?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="line-height:1.7;font-size:14px;font-family:arial"><br>Thank you!<br><br><br><br><br><div>--<br><div>
<div>
<div><font color="#c0c0c0">
<div><font color="#c0c0c0"><font size="3">  <span style>          ×£ºÃ£¡</span></font></font></div><span style>
<div> </div>
<div><font size="3">  Õç¿­</font></div>
<div>
<div><font color="#c0c0c0"><font size="3">------------------------------------------------------------------------------------------------------</font></font></div></div>
<div><font color="#c0c0c0"><font size="3">2012-04-11</font></font></div></span></font></div>
<div><font color="#c0c0c0"><font size="3">------------------------------------------------------------------------------------------------------</font></font></div>
<div><font color="#c0c0c0"><font size="3">Name: Õç¿­(ZhenKai)<br>Homepage:<a href="http://www.renren.com/262729393" target="_blank">http://www.renren.com/262729393</a></font></font></div>
<div><font color="#c0c0c0"><font size="3">Email: </font><a href="mailto:zhenkaixd@126.com" target="_blank"><font color="#0066cc" size="3">zhenkaixd@126.com</font></a><font size="3"> or <a href="mailto:846227103@qq.com" target="_blank">846227103@qq.com</a></font></font></div>

<div><font color="#c0c0c0" size="3">TEL: 15810729006(Beijing)<br>Address: Room I-406, Central Building, Tsinghua University, Beijing, China. 100084.</font></div></div></div></div></div><br><br><span title="neteasefooter"><span></span></span><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><br><div>Thanks,</div><div><br></div><div>Justin Holewinski</div><br>