www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - New Linker Mold Version 1.0 released [1] expieriences?

reply Martin Tschierschke <mt smartdolphin.de> writes:
Just want to ask if anybody is using mold as an replacement for
GNU gold or an other linker?

[Mold on Github](https://github.com/rui314/mold)

[1] 
https://www.heise.de/news/Linux-Linker-Alternative-Mold-will-schneller-sein-als-GNU-Gold-und-lld-von-LLVM-6302178.html
Dec 21 2021
next sibling parent reply max haughton <maxhaton gmail.com> writes:
On Tuesday, 21 December 2021 at 13:01:20 UTC, Martin Tschierschke 
wrote:
 Just want to ask if anybody is using mold as an replacement for
 GNU gold or an other linker?

 [Mold on Github](https://github.com/rui314/mold)

 [1] 
 https://www.heise.de/news/Linux-Linker-Alternative-Mold-will-schneller-sein-als-GNU-Gold-und-lld-von-LLVM-6302178.html
1. You should be using LLD wherever possible. It's the fastest of the stable linkers - Gold isn't too bad compared to ld but lld is really speedy. 2. We tried mold at symmetry and it blew up, however it's been a little while since then so maybe it's time to try again.
Dec 21 2021
parent Martin Tschierschke <mt smartdolphin.de> writes:
On Tuesday, 21 December 2021 at 13:23:25 UTC, max haughton wrote:
[...]
 1. You should be using LLD wherever possible. It's the fastest 
 of the stable linkers - Gold isn't too bad compared to ld but 
 lld is really speedy.
That's a good hint, thank you!
Dec 22 2021
prev sibling next sibling parent M.M. <matus email.cz> writes:
On Tuesday, 21 December 2021 at 13:01:20 UTC, Martin Tschierschke 
wrote:
 Just want to ask if anybody is using mold as an replacement for
 GNU gold or an other linker?

 [Mold on Github](https://github.com/rui314/mold)

 [1] 
 https://www.heise.de/news/Linux-Linker-Alternative-Mold-will-schneller-sein-als-GNU-Gold-und-lld-von-LLVM-6302178.html
here a version in English: https://www.phoronix.com/scan.php?page=news_item&px=Mold-1.0-Released
Dec 21 2021
prev sibling next sibling parent reply FeepingCreature <feepingcreature gmail.com> writes:
On Tuesday, 21 December 2021 at 13:01:20 UTC, Martin Tschierschke 
wrote:
 Just want to ask if anybody is using mold as an replacement for
 GNU gold or an other linker?

 [Mold on Github](https://github.com/rui314/mold)

 [1] 
 https://www.heise.de/news/Linux-Linker-Alternative-Mold-will-schneller-sein-als-GNU-Gold-und-lld-von-LLVM-6302178.html
Well, there's https://issues.dlang.org/show_bug.cgi?id=22483 . On the mold side, afaik https://github.com/rui314/mold/issues/126 is also still open.
Dec 21 2021
parent reply FeepingCreature <feepingcreature gmail.com> writes:
On Tuesday, 21 December 2021 at 15:00:05 UTC, FeepingCreature 
wrote:
 On Tuesday, 21 December 2021 at 13:01:20 UTC, Martin 
 Tschierschke wrote:
 Just want to ask if anybody is using mold as an replacement for
 GNU gold or an other linker?

 [Mold on Github](https://github.com/rui314/mold)

 [1] 
 https://www.heise.de/news/Linux-Linker-Alternative-Mold-will-schneller-sein-als-GNU-Gold-und-lld-von-LLVM-6302178.html
Well, there's https://issues.dlang.org/show_bug.cgi?id=22483 . On the mold side, afaik https://github.com/rui314/mold/issues/126 is also still open.
Dec 25 2021
parent =?ISO-8859-1?Q?Lu=EDs?= Ferreira <contact lsferreira.net> writes:
On Sat, 2021-12-25 at 15:03 +0000, FeepingCreature via Digitalmars-d
wrote:
 On Tuesday, 21 December 2021 at 15:00:05 UTC, FeepingCreature=20
 wrote:
 On Tuesday, 21 December 2021 at 13:01:20 UTC, Martin=20
 Tschierschke wrote:
 Just want to ask if anybody is using mold as an replacement for
 GNU gold or an other linker?
=20
 [Mold on Github](https://github.com/rui314/mold)
=20
 [1]=20
 https://www.heise.de/news/Linux-Linker-Alternative-Mold-will-schnelle=
r-sein-als-GNU-Gold-und-lld-von-LLVM-6302178.html
=20
 Well, there's https://issues.dlang.org/show_bug.cgi?id=3D22483=C2=A0.=
=20
 On the mold side, afaik=20
 https://github.com/rui314/mold/issues/126=C2=A0is also still open.
=20
Great! --=20 Sincerely, Lu=C3=ADs Ferreira lsferreira.net
Dec 27 2021
prev sibling next sibling parent reply Atila Neves <atila.neves gmail.com> writes:
On Tuesday, 21 December 2021 at 13:01:20 UTC, Martin Tschierschke 
wrote:
 Just want to ask if anybody is using mold as an replacement for
 GNU gold or an other linker?

 [Mold on Github](https://github.com/rui314/mold)

 [1] 
 https://www.heise.de/news/Linux-Linker-Alternative-Mold-will-schneller-sein-als-GNU-Gold-und-lld-von-LLVM-6302178.html
On a work project, it reduced link time from 1.2s to 0.8s. On dmd/druntime/phobos - crash.
Dec 23 2021
parent reply Bruce Carneal <bcarneal gmail.com> writes:
On Thursday, 23 December 2021 at 12:38:05 UTC, Atila Neves wrote:
 On Tuesday, 21 December 2021 at 13:01:20 UTC, Martin 
 Tschierschke wrote:
 Just want to ask if anybody is using mold as an replacement for
 GNU gold or an other linker?

 [Mold on Github](https://github.com/rui314/mold)

 [1] 
 https://www.heise.de/news/Linux-Linker-Alternative-Mold-will-schneller-sein-als-GNU-Gold-und-lld-von-LLVM-6302178.html
On a work project, it reduced link time from 1.2s to 0.8s. On dmd/druntime/phobos - crash.
Was the crash with ldc, gdc, dmd? I ask because from this https://issueexplorer.com/issue/rui314/mold/126 I gather that others believe DMD is out of spec.
Dec 23 2021
parent Atila Neves <atila.neves gmail.com> writes:
On Thursday, 23 December 2021 at 21:50:07 UTC, Bruce Carneal 
wrote:
 On Thursday, 23 December 2021 at 12:38:05 UTC, Atila Neves 
 wrote:
 On Tuesday, 21 December 2021 at 13:01:20 UTC, Martin 
 Tschierschke wrote:
 Just want to ask if anybody is using mold as an replacement 
 for
 GNU gold or an other linker?

 [Mold on Github](https://github.com/rui314/mold)

 [1] 
 https://www.heise.de/news/Linux-Linker-Alternative-Mold-will-schneller-sein-als-GNU-Gold-und-lld-von-LLVM-6302178.html
On a work project, it reduced link time from 1.2s to 0.8s. On dmd/druntime/phobos - crash.
Was the crash with ldc, gdc, dmd? I ask because from this https://issueexplorer.com/issue/rui314/mold/126 I gather that others believe DMD is out of spec.
I didn't investigate. As soon as things didn't work I typed `sudo ln -sf /usr/bin/ld.lld /usr/bin/ld` and carried on with my life. lld at one point produced crashing binaries with D code but that got fixed. I can't remember if it involved changing dmd or not, but I think so.
Dec 24 2021
prev sibling parent =?ISO-8859-1?Q?Lu=EDs?= Ferreira <contact lsferreira.net> writes:
On Tue, 2021-12-21 at 13:01 +0000, Martin Tschierschke via Digitalmars-
d wrote:
 Just want to ask if anybody is using mold as an replacement for
 GNU gold or an other linker?
=20
 [Mold on Github](https://github.com/rui314/mold)
=20
 [1]=20
 https://www.heise.de/news/Linux-Linker-Alternative-Mold-will-schneller-se=
in-als-GNU-Gold-und-lld-von-LLVM-6302178.html Seems a good project to try out, but I recently discovered that LLD is speedy and stable on huge projects. It could also be a blocker for some due to lack of LTO support. - gold for GCC+LTO bytecode - lld for pretty much anything else For now LLD only supports Itanium or plain C mangled names, but I'm going to soon add a patch to LLD to make it use of the D demangler and print pritty names for D symbols :) --=20 Sincerely, Lu=C3=ADs Ferreira lsferreira.net
Dec 24 2021