[LLVMdev] clang with multiple input .c and .h files
nicholas at mxc.ca
Sat Dec 17 16:47:44 PST 2011
Christine Cheng wrote:
> I would like to generate LLVM byte code for some .c and .h files in a
> benchmark. Is Clang (or llvm-gcc) has an option for me to input
> multiple c files and generate 1 byte code file?
> I think generating byte code for each .c file and compile and link
> them later is not a good idea since the programs are related to each
> Any suggestions about how I should do it?
$ llvm-link *.bc -o combined.bc
> gcc has a '-combine' option but it has been removed in the recent 4.6
> release. Is clang not going to support that feature?
> Thanks and happy holidays!
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev