dmd -run speed trends

Siarhei Siamashka siarhei.siamashka at gmail.com
Fri Dec 15 22:53:36 UTC 2023


On Friday, 8 December 2023 at 04:15:45 UTC, kinke wrote:
> Not just a little; the default bfd linker is terrible. My 
> timings with various linkers (mold built myself) on Ubuntu 22, 
> using a `writeln` variant, best of 5:
>
> |                   | bfd v2.38 | gold v1.16 | lld v14 | mold 
> v2.4 |
> |------------------ |------|------|------|-------|
> | DMD v2.106.0      | 0.34 | 0.22 | 0.18 | fails to link |
> | LDC v1.36.0-beta1 | 0.47 | 0.24 | 0.22 | 0.18  |
>
> Bench cmdline: `dmd -Xcc=-fuse-ld=<bfd,gold,lld,mold> -run 
> bench.d`

Regarding the "failed to link" table entry for the `dmd+mold` 
combo. I tried to search a bit and found:
* https://github.com/rui314/mold/issues/126
* https://issues.dlang.org/show_bug.cgi?id=22483

It would be great if `dmd` could resolve the mold compatibility 
problems. Compilation speed is the primary `dmd`'s 
differentiating feature justifying its very existence, so maybe 
this issue deserves much more attention?


More information about the Digitalmars-d mailing list