Mergin .bc files

Hello,

Two questions:

  1. How I can merge a project with several (.bc) files just in one (.bc) file?
  2. Is there a more efficient way to do the below procedure (and get the .bc files)?

llvm-gcc -static -O3 -emit-llvm aes.c -c -o aes.bc
llvm-gcc -static -O3 -emit-llvm aesxam.c -c -o aesxam.bc
llvm-ld aes.bc aesxam.bc -o rijndael_llvm

Hello,
Two questions:
1. How I can merge a project with several (.bc) files just in one (.bc)
file?

http://llvm.org/cmds/llvm-link.html.

2. Is there a more efficient way to do the below procedure (and get the .bc
files)?
llvm-gcc -static -O3 -emit-llvm aes.c -c -o aes.bc
llvm-gcc -static -O3 -emit-llvm aesxam.c -c -o aesxam.bc
llvm-ld aes.bc aesxam.bc -o rijndael_llvm

No, not really. It isn't particularly inefficient to do it that way,
though; reading/writing .bc files is relatively fast.

-Eli