Displaying 4 results from an estimated 4 matches for "showdebug".
Did you mean:
show_bug
2012 Aug 02
2
[LLVMdev] Questions about clang options
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 r...
2012 Aug 02
1
[LLVMdev] Questions about clang options
Dear Zhang,
Compiler ends up invoking cc1 (the backend) anyways. So if you would
like to invoke it by hand, the only thing to know is the right
combination of options. Try to use the compiler verbose option "-v".
It will show you how exactly clang invokes the backend:
> clang -v -c showdebug.c
clang version 3.2 (trunk 156703)
Target: x86_64-unknown-linux-gnu
Thread model: posix
"/opt/kernelgen/bin/clang" -cc1 -triple x86_64-unknown-linux-gnu
-emit-obj -mrelax-all -disable-free -main-file-name showdebug.c
-mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose...
2012 Aug 02
0
[LLVMdev] Questions about clang options
On Thu, Aug 2, 2012 at 8:56 AM, Xinglin Zhang <xinglinzh at gmail.com> wrote:
> 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
>
>
>...
2014 Mar 25
3
[LLVMdev] Getting the Debugging JIT-ed Code with GDB example to work
...wed the sample command line session (below, with versions numbers
for everything), but gdb doesn't stop at the breakpoints as described. Any
idea what is wrong?
Thanks,
Zach
zdevito at derp:~/terra/tests$
> ~/clang+llvm-3.4-x86_64-unknown-ubuntu12.04/bin/clang -cc1 -O0 -g
> -emit-llvm showdebug.c
> zdevito at derp:~/terra/tests$ gdb --args
> ~/clang+llvm-3.4-x86_64-unknown-ubuntu12.04/bin/lli -use-mcjit showdebug.ll
> 5
> GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
> Copyright (C) 2012 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or lat...