Jump to page: 1 2
Thread overview
New Linker Mold Version 1.0 released [1] expieriences?
Dec 21, 2021
max haughton
Dec 21, 2021
M.M.
Dec 21, 2021
FeepingCreature
Dec 25, 2021
FeepingCreature
Dec 27, 2021
Luís Ferreira
Dec 23, 2021
Atila Neves
Dec 23, 2021
Bruce Carneal
Dec 24, 2021
Atila Neves
Dec 25, 2021
Luís Ferreira
December 21, 2021

Just want to ask if anybody is using mold as an replacement for
GNU gold or an other linker?

Mold on Github

[1] https://www.heise.de/news/Linux-Linker-Alternative-Mold-will-schneller-sein-als-GNU-Gold-und-lld-von-LLVM-6302178.html

December 21, 2021

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

[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.

December 21, 2021

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

[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

December 21, 2021

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

[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.

December 22, 2021

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!

December 23, 2021

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

[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.

December 23, 2021

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

[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.

December 24, 2021

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

[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.

December 25, 2021
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?
> 
> [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

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 :)

-- 
Sincerely,
Luís Ferreira @ lsferreira.net



December 25, 2021

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

[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.

Fresh update: #126 is fixed!

« First   ‹ Prev
1 2