[LLVMdev] Questions about clang options

Xinglin Zhang xinglinzh at gmail.com
Thu Aug 2 08:56:24 PDT 2012


Hi,

I am quite new to LLVM. I just compiled LLVM and clang on Ubuntu11.10 then
 followed the tutorial  http://llvm.org/docs/DebuggingJITedCode.html

clang -cc1 -O0 -g -emit-llvm showdebug.c


where showdebug.c contains:

#include<stdio.h>
int main()
{
  printf("hello\n");
  return 0;
}

But I got
Fatal error: 'stdio.h' file not found.


However,

clang showdebug.c


has no problem. I know -g means to generate debug information, -emit-llvm
means use the llvm representation for assembler and object files.

Then what do -cc1 and -O0 mean?

Regards,

-- 
Xinglin Zhang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120802/798f8feb/attachment.html>


More information about the llvm-dev mailing list