<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><DIV></DIV>
<DIV><PRE class="programlisting">Hi  all,</PRE><PRE class="programlisting">I've been confuzed by this question for several days! I know there is Started Guild in llvm.org to tell me how to</PRE><PRE class="programlisting">compile helloworld.c into ,bc file.   But what if it is a module that includes header  files in linux?</PRE><PRE class="programlisting">Could you be kind and tell me the clang command that can compile the following programme into a .bc file?</PRE><PRE class="programlisting"> </PRE><PRE class="programlisting">Thank you!</PRE><PRE class="programlisting"> </PRE><PRE class="programlisting">#include <linux/init.h>
#include <linux/module.h>
MODULE_LICENSE("Dual BSD/GPL");

static int hello_init(void)
{
        printk(KERN_ALERT "Hello, world\n");
        return 0;
}
static void hello_exit(void)
{

        printk(KERN_ALERT "Goodbye, cruel world\n");
}

module_init(hello_init);
module_exit(hello_exit);
</PRE><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-15</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><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>