search for: finalexec

Displaying 3 results from an estimated 3 matches for "finalexec".

2006 Apr 25
0
[LLVMdev] src to src conversion
...e.opt.bc. Then I use llc to > convert file.opt.bc->file.opt.c. Now, I want to use normal gcc to > compile file.opt.c into an executable. However, I'm getting the > following errors: Please try the following: llvm-gcc -o final file.opt.bc -lcrtend llc -march=c final.bc gcc -o finalexec final.cbe.c The first line uses llvm-gcc to link libcrtend.a to your optimized bytecode file. Using llvm-gcc ensures that it picks up the version of libcrtend.a located within your llvm-gcc distribution (which should work). The second and third lines generate the C code and compile it into a...
2006 Apr 25
3
[LLVMdev] src to src conversion
I am trying to use LLVM as a source to source C compiler. I use llvm-gcc to convert file.c->file.bc. Then I use opt to run my own compiler passes to convert file.bc->file.opt.bc. Then I use llc to convert file.opt.bc->file.opt.c. Now, I want to use normal gcc to compile file.opt.c into an executable. However, I'm getting the following errors: test.opt.c:89: warning:
2006 Apr 25
4
[LLVMdev] src to src conversion
...vert file.opt.bc->file.opt.c. Now, I want to use normal gcc >> to compile file.opt.c into an executable. However, I'm getting >> the following errors: > > Please try the following: > > llvm-gcc -o final file.opt.bc -lcrtend > llc -march=c final.bc > gcc -o finalexec final.cbe.c > > The first line uses llvm-gcc to link libcrtend.a to your optimized > bytecode file. Using llvm-gcc ensures that it picks up the version > of libcrtend.a located within your llvm-gcc distribution (which > should work). > > The second and third lines genera...