Hello, 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 other. Any suggestions about how I should do it? 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! Christine
Hi, I decided to work with individual files now and link them together later. Thanks, Christine On Sat, Dec 17, 2011 at 4:18 PM, Christine Cheng <clcheng at stanford.edu> wrote:> Hello, > > 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 > other. > > Any suggestions about how I should do it? > > 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! > > Christine
Christine Cheng wrote:> Hello, > > 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 > other. > > Any suggestions about how I should do it?$ llvm-link *.bc -o combined.bc should work. Nick> 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! > > Christine > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
Reasonably Related Threads
- [LLVMdev] help with an error message using clang ?
- [LLVMdev] help with an error message using clang ?
- [LLVMdev] help with an error message using clang ?
- [LLVMdev] tools to debug human readable llvm assembly bc code?
- [LLVMdev] problem with sgt's on Sparc machine