search for: t1sub2

Displaying 5 results from an estimated 5 matches for "t1sub2".

Did you mean: t1sub1
2006 Feb 27
2
[LLVMdev] Using llvm-gcc with a simple program and the '-c' option
...tend.c . > Misha, Great now I understand, one more related question. This actually started trying to understand how llvm-gcc, llvm-ar, llvm-ld & llc work together. With the help I've received I've successfully used them to create a native executable of 3 files, t1.c, t1sub1.c t1sub2.c, where t1.c calls a subroutine in t1sub1.c and t1sub2.c. I then do the following in my makefile: llvm-gcc -c t1.c -o t1.bc llvm-gcc -c t1sub1.c -o t1sub1.bc llvm-gcc -c t1sub2.c -o t1sub2.bc llvm-ar r t1.a t1sub1.bc t1sub2.bc llvm-ar: creating t1.a llvm-ld -o t1.app t1.bc t1.a /opt...
2006 Feb 27
0
[LLVMdev] Using llvm-gcc with a simple program and the '-c' option
On Sun, 26 Feb 2006, Wink Saville wrote: > I then do the following in my makefile: > > llvm-gcc -c t1.c -o t1.bc > llvm-gcc -c t1sub1.c -o t1sub1.bc > llvm-gcc -c t1sub2.c -o t1sub2.bc > llvm-ar r t1.a t1sub1.bc t1sub2.bc > llvm-ar: creating t1.a > llvm-ld -o t1.app t1.bc t1.a /opt/llvm-1.6/llvm-gcc/lib/libcrtend.a > llvm-ld: warning: Cannot find library 'crtend' Try passing "-L/opt/llvm-1.6/llvm-gcc/lib/ -lcrtend" to llvm-ld. Altern...
2006 Feb 27
0
[LLVMdev] Using llvm-gcc with a simple program and the '-c' option
On Sun, Feb 26, 2006 at 10:00:18PM -0800, Wink Saville wrote: > Thanks for the info, you've confirmed what I was trying to do, but when > I compile: [snip] > without "-c" (llvm-gcc t1.c -o t1) the dissassembled bytecode does not > call __main: __main() is used to run static constructors and destructors, so if you're compiling without -c, LLVM knows all the files
2006 Feb 27
2
[LLVMdev] Using llvm-gcc with a simple program and the '-c' option
Robert, Thanks for the info, you've confirmed what I was trying to do, but when I compile: ----------------------- #include <stdio.h> int main(int argc, char *argv[]) { printf("yo\n"); return 0; } ----------------------- without "-c" (llvm-gcc t1.c -o t1) the dissassembled bytecode does not call __main: ----------------------- ; ModuleID =
2006 Feb 28
3
[LLVMdev] Using llvm-gcc with a simple program and the '-c' option
Chris Lattner wrote: > On Sun, 26 Feb 2006, Wink Saville wrote: >> I then do the following in my makefile: >> >> llvm-gcc -c t1.c -o t1.bc >> llvm-gcc -c t1sub1.c -o t1sub1.bc >> llvm-gcc -c t1sub2.c -o t1sub2.bc >> llvm-ar r t1.a t1sub1.bc t1sub2.bc >> llvm-ar: creating t1.a >> llvm-ld -o t1.app t1.bc t1.a /opt/llvm-1.6/llvm-gcc/lib/libcrtend.a >> llvm-ld: warning: Cannot find library 'crtend' > > Try passing "-L/opt/llvm-1.6/llvm-gcc/lib/ -lcrtend&...