Tianyin Xu
2012-Jun-26 23:47 UTC
[LLVMdev] What's the difference between using llvm-link and using llvm gold plugin?
I got your point! Thanks a lot, Rafael! Best, Tianyin On Tue, Jun 26, 2012 at 4:12 PM, Rafael Espíndola < rafael.espindola at gmail.com> wrote:> > Could you explain a bit more (sorry I'm not from a compiler background)? > So, > > what's the difference in the analysis perspective? What does "reading ELF > > files and archives" and "creating a list of symbols passed to llvm's > > internalize pass" do? > > > > I checked a little bit the corresponding .ll file generated according to > the > > .bc file. It seems that symbols like struct and function names are > > preserved. What is missing here? Is it possible for you to give an simple > > example? > > There is an example in > > http://llvm.org/docs/GoldPlugin.html#example1 > > Where some files are native ELF files and some are IL. Gold is able to > handle it, llvm-link will just tell you that it doesn't know about the > ELF format. > > > Thanks a lot! > > Tianyin > > > Cheers, > Rafael >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120626/d708c08b/attachment.html>
Duncan Sands
2012-Jun-27 07:50 UTC
[LLVMdev] What's the difference between using llvm-link and using llvm gold plugin?
Hi,> I got your point! Thanks a lot, Rafael!one big difference is that llvm-link doesn't do any optimization, while the gold linker does. You can get something similar to gold by using llvm-link, and then running "opt -std-link-opts" on the linked bitcode file. However all symbols will be internalized by default (you can adjust this on the command line) while the gold linker is more sophisticated about what is internalized as Rafael mentioned. Ciao, Duncan.> > Best, > Tianyin > > On Tue, Jun 26, 2012 at 4:12 PM, Rafael Espíndola <rafael.espindola at gmail.com > <mailto:rafael.espindola at gmail.com>> wrote: > > > Could you explain a bit more (sorry I'm not from a compiler background)? So, > > what's the difference in the analysis perspective? What does "reading ELF > > files and archives" and "creating a list of symbols passed to llvm's > > internalize pass" do? > > > > I checked a little bit the corresponding .ll file generated according to the > > .bc file. It seems that symbols like struct and function names are > > preserved. What is missing here? Is it possible for you to give an simple > > example? > > There is an example in > > http://llvm.org/docs/GoldPlugin.html#example1 > > Where some files are native ELF files and some are IL. Gold is able to > handle it, llvm-link will just tell you that it doesn't know about the > ELF format. > > > Thanks a lot! > > Tianyin > > > Cheers, > Rafael > > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
Tianyin Xu
2012-Jul-01 23:53 UTC
[LLVMdev] What's the difference between using llvm-link and using llvm gold plugin?
Hi, Duncan, Thank you very much for your reply. I see. But actually I don't need the optimization because I just want to do static analysis upon the bitcode file. :-) Best regards, Tianyin On Wed, Jun 27, 2012 at 12:50 AM, Duncan Sands <baldrick at free.fr> wrote:> Hi, > > > I got your point! Thanks a lot, Rafael! > > one big difference is that llvm-link doesn't do any optimization, while > the gold > linker does. You can get something similar to gold by using llvm-link, > and then > running "opt -std-link-opts" on the linked bitcode file. However all > symbols > will be internalized by default (you can adjust this on the command line) > while > the gold linker is more sophisticated about what is internalized as Rafael > mentioned. > > Ciao, Duncan. > > > > > Best, > > Tianyin > > > > On Tue, Jun 26, 2012 at 4:12 PM, Rafael Espíndola < > rafael.espindola at gmail.com > > <mailto:rafael.espindola at gmail.com>> wrote: > > > > > Could you explain a bit more (sorry I'm not from a compiler > background)? So, > > > what's the difference in the analysis perspective? What does > "reading ELF > > > files and archives" and "creating a list of symbols passed to > llvm's > > > internalize pass" do? > > > > > > I checked a little bit the corresponding .ll file generated > according to the > > > .bc file. It seems that symbols like struct and function names are > > > preserved. What is missing here? Is it possible for you to give > an simple > > > example? > > > > There is an example in > > > > http://llvm.org/docs/GoldPlugin.html#example1 > > > > Where some files are native ELF files and some are IL. Gold is able > to > > handle it, llvm-link will just tell you that it doesn't know about > the > > ELF format. > > > > > Thanks a lot! > > > Tianyin > > > > > > Cheers, > > Rafael > > > > > > > > _______________________________________________ > > LLVM Developers mailing list > > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120701/373a4391/attachment.html>
Reasonably Related Threads
- [LLVMdev] What's the difference between using llvm-link and using llvm gold plugin?
- [LLVMdev] What's the difference between using llvm-link and using llvm gold plugin?
- [LLVMdev] What's the difference between using llvm-link and using llvm gold plugin?
- [LLVMdev] What's the difference between using llvm-link and using llvm gold plugin?
- [LLVMdev] What's the difference between using llvm-link and using llvm gold plugin?