On Mon, Jun 4, 2012 at 4:39 PM, Nikos Chantziaras <rea...@gmail.com> wrote:
>
>> Did you use gold or the standard linker?
>
>
> The standard one.  I didn't actually think about the importance of this.
>  Does gold work better with LTO?

I don't know much about it, but AFAIK gold is supposed to be several
times faster at linking in general, and when using it in combination
with gcc+LTO the compiler actually offloads some of the LTO processing
to the linker which is supposed to be more efficient.

I've never tried it personally, but I just googled and found this
mentioned on the GCC site:

"As an added feature, LTO will take advantage of the plugin feature in
gold. This allows the compiler to pick up object files that may have
been stored in library archives. To use this feature, you must be
using gold as the linker and enable the use of the plugin by compiling
with gcc -fuse-linker-plugin. This will shift the responsibility of
driving the final stages of compilation from collect2 to gold via the
linker plugin."

And in gentoo you can switch to gold as explained on the wiki:
https://wiki.gentoo.org/wiki/Gold

Reply via email to