Hi,<div><br></div><div>I am quite new to LLVM. I just compiled LLVM and clang on Ubuntu11.10 then  followed the tutorial  <a href="http://llvm.org/docs/DebuggingJITedCode.html">http://llvm.org/docs/DebuggingJITedCode.html</a></div>
<div><br></div><div><pre class="doc_code" style="border:1px solid gray;background-color:rgb(238,238,238);margin:0px 1em;padding:1em 2em 1em 1em;display:table;text-align:left">clang -cc1 -O0 -g -emit-llvm showdebug.c</pre>
<div><br></div><div>where showdebug.c contains:</div><div><br></div><div>#include<stdio.h></div><div>int main()</div><div>{</div><div>  printf("hello\n");</div><div>  return 0;</div><div>}</div><div><br></div>
<div>But I got </div><div>Fatal error: 'stdio.h' file not found.</div><div><br></div><div><br></div><div>However, </div><div><pre class="doc_code" style="border:1px solid gray;background-color:rgb(238,238,238);margin:0px 1em;padding:1em 2em 1em 1em;display:table;text-align:left">
clang showdebug.c</pre><br>has no problem. I know -g means to generate debug information, -emit-llvm means use the llvm representation for assembler and object files. </div><div><br></div><div>Then what do -cc1 and -O0 mean?</div>
<div><br></div><div>Regards,</div><div><br></div>-- <br>Xinglin Zhang<br><br>
</div>