[LLVMdev] Mergin .bc files

Eli Friedman eli.friedman at gmail.com
Wed Dec 23 12:49:40 PST 2009


On Wed, Dec 23, 2009 at 12:34 PM, Juan Carlos Martinez Santos
<juanc.martinez.santos at gmail.com> wrote:
> 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




More information about the llvm-dev mailing list