RFR: JDK-8217723 Switch ld from bfd to gold on gcc toolchain
Andrew Haley
aph at redhat.com
Sat Jan 26 13:55:36 UTC 2019
On 1/25/19 3:39 PM, Andrew Haley wrote:
> On 1/25/19 2:39 PM, Andrew Haley wrote:
>> Massive win for gold here, on my (very old) AArch64 system:
>
> And on another, faster AArch64 system:
>
> BFD linker:
>
> real 0m14.532s
> user 0m13.070s
> sys 0m1.419s
>
> gold, single-threaded:
>
> real 0m6.313s
> user 0m6.123s
> sys 0m0.190s
>
> gold, multi-threaded:
>
> real 0m4.129s
> user 0m8.724s
> sys 0m1.741s
>
> Verdict: yes, please!
I couldn't get lld to work with any of the tools I have installed. So I built
a bleeding-edge gcc and lld, and I got:
lld, single-threaded
real 0m3.269s
user 0m3.049s
sys 0m0.221s
lld, multi-threaded:
real 0m1.213s
user 0m4.336s
sys 0m0.960s
Which is faster by a factor of 12! It'll be a while before this is installed
everywhere, but worth having. Effectively it makes linking go away as a major
component of build time.
--
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the build-dev
mailing list