Displaying 1 result from an estimated 1 matches for "dtoronto".
Did you mean:
toronto
2011 Mar 02
3
[LLVMdev] Compile C files to one .bc file
Hi
I'm trying to compile the "bh" C program from the Olden benchmark to one bc file.
# compile source files into an LLVM bitcode file
llvm-gcc -emit-llvm -c args.c -o args.bc -w -DTORONTO
llvm-gcc -emit-llvm -c newbh.c -o newbh.bc -w -DTORONTO
llvm-gcc -emit-llvm -c util.c -o util.bc -w -DTORONTO
llvm-gcc -emit-llvm -c walksub.c -o walksub.bc -w -DTORONTO
# To link files together using llvm-ld
llvm-ld -o bh.bc newbh.bc args.bc util.bc walksub.bc -lm
But when I try to run my pass o...