User: Password:
|
|
Subscribe / Log in / New account

Optimization

Optimization

Posted Mar 26, 2008 19:16 UTC (Wed) by paragw (guest, #45306)
Parent article: Striking gold in binutils

What about optimizations - will the new linker be capable of doing all the optimizations that
GNU LD does?


(Log in to post comments)

Optimization

Posted Mar 27, 2008 0:14 UTC (Thu) by JoeBuck (guest, #2330) [Link]

Which optimizations do you have in mind? It already handles the basic ones, like COMDAT.

Optimization

Posted Mar 27, 2008 1:05 UTC (Thu) by paragw (guest, #45306) [Link]

I wasn't sure about what optimizations GNU LD does - only that there was a documented -O
switch to tell it to optimize which warns that it takes a lot of time to optimize. So I
assumed it must be doing significant optimizations.

Got to check out on the possible linker optimizations - interesting exercise. (Someone from
Sun claimed gld does not do half the optimizations that the Sun Linker does - may be specific
to SPARC.)

Optimization

Posted Mar 27, 2008 17:18 UTC (Thu) by JoeBuck (guest, #2330) [Link]

GNU ld's -O switch only affects shared library generation; the optimization is described in this LWN article. I don't know whether gold does anything similar.


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds