Nan Zhu
2009-Oct-30 09:40 UTC
[LLVMdev] I have built a whole-program bitcode file for openldap-2.19
Hi,all I have written a wrapper which includes gcc/g++,ld and llvm counterparts, it invokes native or llvm compiler and linker according to the options it receives,after I replace the native tools with my wrapper in libtool script, I just typed like this make CC=wrapper AC_CFLAGS=-emit-llvm then I got a bc file of slapd and other tools in clients directory The accessory is the whole-program bitcode file of slapd (My platform is Fedora11 x86_64+E6300) the method can also be applied to many GNU projects but there may be some other problems when I treat to BIND,I'm checking it.. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091030/1dcd3a47/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: slapd.bc Type: application/octet-stream Size: 2662636 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091030/1dcd3a47/attachment.obj>
Keppler, Dave
2009-Oct-30 16:10 UTC
[LLVMdev] I have built a whole-program bitcode file for openldap-2.19
>I have written a wrapper which includes gcc/g++,ld and llvm counterparts, >it invokes native or llvm compiler and linker according to the options it >receives,after I replace the native tools with my wrapper in libtool >script, I just typed like this > >make CC=wrapper AC_CFLAGS=-emit-llvm > >then I got a bc file of slapd and other tools in clients directory > >The accessory is the whole-program bitcode file of slapd > >(My platform is Fedora11 x86_64+E6300) > >the method can also be applied to many GNU projects but there may be some >other problems when I treat to BIND,I'm checking it.. > >Thank you > >Are you able to post the wrapper some place? I'm interested in comparing this against the gold-plugin method.
Nan
2009-Oct-30 16:43 UTC
[LLVMdev] I have built a whole-program bitcode file foropenldap-2.19
I haven't test it completely for Apache , when I finish that I will post it ASAP. BTW, Have you archieved the same goal with gold-plugin???I once tried it but just got a failure for llvm tools is not completely compatible with GNU ones. ----- Original Message ----- From: "Keppler, Dave" <dkeppler at mitre.org> To: "Nan Zhu" <zhunansjtu at gmail.com>; <llvmdev at cs.uiuc.edu> Sent: Saturday, October 31, 2009 12:10 AM Subject: RE: [LLVMdev] I have built a whole-program bitcode file foropenldap-2.19>I have written a wrapper which includes gcc/g++,ld and llvm counterparts, >it invokes native or llvm compiler and linker according to the options it >receives,after I replace the native tools with my wrapper in libtool >script, I just typed like this > >make CC=wrapper AC_CFLAGS=-emit-llvm > >then I got a bc file of slapd and other tools in clients directory > >The accessory is the whole-program bitcode file of slapd > >(My platform is Fedora11 x86_64+E6300) > >the method can also be applied to many GNU projects but there may be some >other problems when I treat to BIND,I'm checking it.. > >Thank you > >Are you able to post the wrapper some place? I'm interested in comparing this against the gold-plugin method. __________ Information from ESET NOD32 Antivirus, version of virus signature database 4558 (20091030) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
Apparently Analagous Threads
- [LLVMdev] I have built a whole-program bitcode file for openldap-2.19
- [LLVMdev] I have built a whole-program bitcode file foropenldap-2.19
- [LLVMdev] I have built a whole-program bitcode file for openldap-2.4.19
- [LLVMdev] I have built a whole-program bitcode file foropenldap-2.19
- [LLVMdev] I have built a whole-program bitcode file foropenldap-2.19