Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-06

Alternative linker

7 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mark Morgan Lloyd

When building Lazarus on Linux, is there an easy way to tell fpc to use gold rather than ld to get comparative timings?

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Mark Morgan Lloyd
to Andrew Haines
Andrew Haines wrote 8 lines
On 06/03/11 17:47, Mark Morgan Lloyd wrote: > When building Lazarus on Linux, is there an easy way to tell fpc to use > gold rather than ld to get comparative timings? > If you compile your program with -s a "ppas.sh" file will be generated which you can edit and then run to link the program.

Thanks, but that's something I specifically don't want to do since I'm trying to get a reproducible time for building Lazarus on a very tight system.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Mark Morgan Lloyd
to leledumbo: You can try fooling the compiler by making ld symlink to gold (of course you better back…
leledumbo wrote
You can try fooling the compiler by making ld symlink to gold (of course you better back up your real ld)

Thanks, that had occurred to me. As a general point I notice that in the case of Debian ld is a symlink internal to /usr/bin, rather than going through /etc/default which is their normal convention.

In practice it looks as though as of binutils 2.20.1 gold is only being shipped for x86, and I don't want to know the answer to the extent that I'll start investigating why.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Marco van de Voort
to Mark Morgan Lloyd: Thanks, but that's something I specifically don't want to do since I'm trying to get a…
Mark Morgan Lloyd wrote 5 lines
> which you can edit and then run to link the program. Thanks, but that's something I specifically don't want to do since I'm trying to get a reproducible time for building Lazarus on a very tight system.

Pass parameter -XPnonsense- and make a symlink of nonsense-as, nonsense-ar and nonsense-ld to the ones you want.

Reply by email

Mark Morgan Lloyd
to Marco van de Voort
Marco van de Voort wrote 8 lines
On Sat, Jun 04, 2011 at 10:14:38AM +0000, Mark Morgan Lloyd wrote: >> which you can edit and then run to link the program. > Thanks, but that's something I specifically don't want to do since I'm > trying to get a reproducible time for building Lazarus on a very tight > system. Pass parameter -XPnonsense- and make a symlink of nonsense-as, nonsense-ar and nonsense-ld to the ones you want.

Thanks Marco, noted.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email