<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><DIV>Thank you, Chen!</DIV>
<DIV> </DIV>
<DIV>The thing is that I know the Makefile to complete that task. But what  I want to know the clang command that can do that. Since the makefile will generate a .ko file while I can use the clang command "-O3-emit-llvm" to generate a corresponding .bc file so the pass can be run on that.</DIV>
<DIV> </DIV>
<DIV>Any help? <BR><BR></DIV>
<DIV>--<BR>
<DIV>
<DIV>
<DIV><FONT color="#c0c0c0" size="2">
<DIV><FONT color="#c0c0c0"><FONT size="3">  <SPAN style="COLOR: #000000">          ףã</SPAN></FONT></FONT></DIV><SPAN style="COLOR: #000000">
<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-16</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:http://www.renren.com/262729393</FONT></FONT></DIV>
<DIV><FONT color="#c0c0c0"><FONT size="3">Email: </FONT><A href="mailto:zhenkaixd@126.com" target="_blank" _listener="1901"><FONT color="#0066cc" size="3">zhenkaixd@126.com</FONT></A><FONT size="3"> or <A href="mailto:846227103@qq.com">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 id="divNeteaseMailCard"></DIV>
<DIV><BR></DIV><PRE><BR>At 2012-04-15 18:12:24,"f" <chenwj@iis.sinica.edu.tw> wrote:
>Hi ZhenKai,
>
>  Perhaps you can try to write a kernel module and compile it by using Clang first,
>(see http://www.faqs.org/docs/kernel/). You might be interested in this page,
>http://www.faqs.org/docs/kernel/x204.html which contains a Makefile used to compile  
>a kernel module. Good Luck!
>
>Regards,
>chenwj
>
>-- 
>Wei-Ren Chen (f)
>Computer Systems Lab, Institute of Information Science,
>Academia Sinica, Taiwan (R.O.C.)
>Tel:886-2-2788-3799 #1667
>Homepage: http://people.cs.nctu.edu.tw/~chenwj
</PRE></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>