Displaying 4 results from an estimated 4 matches for "mergedbc".
Did you mean:
merged
2013 Jan 17
4
[LLVMdev] Migrate Project Build system to LLVM BitCode
...ul here:
Original Makefile- Object Files based Build/Link Steps:
clang -g -O2 -o .libs/mergedexe file1.o file2.o file3.o -pthread -Wl,--export-dynamic .libs/lib1.a -lssl -ldl -pthread .libs/lib2.so
Proposed Makefile- LLVM Bitcode based Build/Link Steps:
1. llvm-link -o .libs/mergedbc.bc file1.bc file2.bc file3.bc
2. opt -o optmerged.bc -load /path/to/Mypass.so -mypass < mergedbc.bc
3. llc -o .libs/mergedbc.s .libs/mergedbc.bc
4. gcc -g -O2 -o .libs/mergedexe .libs/mergedbc.s -pthread -Wl,--export-dynamic .libs/lib1.a -lssl -lcrypto...
2013 Jan 17
0
[LLVMdev] Migrate Project Build system to LLVM BitCode
...command, then it is not worth spending time on GoldPlugin. If you are building a large project, then it will be simpler to use GoldPlugin.
The steps you are using seem right. You can possibly combine the last two steps (3&4) using only 1 clang command.
clang -g -O2 -o .libs/mergedexe .libs/mergedbc.bc -pthread -Wl,--export-dynamic .libs/lib1.a -lssl -lcrypto –ldl –pthread .libs/lib2.so
-Swarup.
________________________________
From: llvmdev-bounces at cs.uiuc.edu [llvmdev-bounces at cs.uiuc.edu] on behalf of Hassan, Ahmad [ahmad.hassan at sap.com]
Sent: Thursday, January 17, 2013 7:56 A...
2013 Jan 17
0
[LLVMdev] Migrate Project Build system to LLVM BitCode
...bject Files based Build/Link Steps: *
>
> clang -g -O2 –o .libs/mergedexe file1.o file2.o file3.o -pthread
> -Wl,--export-dynamic .libs/lib1.a -lssl –ldl –pthread .libs/lib2.so
>
> *Proposed Makefile- LLVM Bitcode based Build/Link Steps:*
>
> 1.llvm-link -o .libs/mergedbc.bc file1.bc file2.bc file3.bc
>
> 2.opt –o optmerged.bc -load /path/to/Mypass.so -mypass < mergedbc.bc
>
> 3.llc -o .libs/mergedbc.s .libs/mergedbc.bc
>
> 4.gcc -g -O2 -o .libs/mergedexe .libs/mergedbc.s -pthread
> -Wl,--export-dynamic .libs/lib1.a -lss...
2013 Jan 17
1
[LLVMdev] Migrate Project Build system to LLVM BitCode
Hi Duncan,
> 4.gcc -g -O2 -o .libs/mergedexe .libs/mergedbc.s -pthread
> -Wl,--export-dynamic .libs/lib1.a -lssl -lcrypto -ldl -pthread .libs/lib2.so
>if you pass -O4 rather than -O2 to clang I think it will in essence do this all
>for you already. It might even do the link time optimization for you at -O2
>even, I'm not sure.
No, if...