Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » Mold - Alternative Linker on Linux
Mold - Alternative Linker on Linux [message #61214] Sun, 08 December 2024 16:28 Go to next message
Klugier is currently offline  Klugier
Messages: 1099
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

Today I found that there is an alternative linker called mold. Authors advertised it as a faster alternative to the default linkers associated with compilers such as ld for GCC and lld for Clang. I decieded to give it a chance and indeed it performs better on my machine (Ryzen 5900x):
- TheIDE Linking Debug (Stock Clang 1:32s vs 00.43s on Mold)
- TheIDE Linking Debug (Stock GCC 1:50s vs 0:46s on Mold)
- TheIDE Linking Debug (Old Xeon) (Stock Clang: 2:17s vs 1.05s on Mold)

I did some tests with BLITZ disabled and the timings are:
- UppWeb Linking Debug (Stock Clang 1.13s vs 0.23s on Mold) ~ 5 times faster, the whole build is decreased from 36.68s to 35.58s. Not much, but the gain is visible.

Mold is only available on Linux so far. So, if you want to use you need to download it. On my distro Manjaro it is available as a pacakge, so I used this option. After that there is a need to modify build method to switch to alternative linker and that's all. Just add "-fuse-ld=mold" to Common Link Options. My BM setup below:
index.php?t=getfile&id=7018&private=0

If you could test it and post the benchmark on your system (Stock vs Mold), I would be grateful for that information.

Links:
- Mold Linker Performance Remains Very Compelling In 2024 Over GNU Gold/ld, LLVM lld - Phoronix

Klugier
  • Attachment: MoldBM.png
    (Size: 92.41KB, Downloaded 163 times)


U++ - one framework to rule them all.

[Updated on: Sun, 08 December 2024 17:55]

Report message to a moderator

Re: Mold - Alternative Linker on Linux [message #61239 is a reply to message #61214] Sat, 14 December 2024 17:08 Go to previous message
Lance is currently offline  Lance
Messages: 656
Registered: March 2007
Contributor
Thanks for sharing the info. Will give it a try.
Previous Topic: U++ bug (freezed screen) related to Dual Display
Next Topic: Flutter experience
Goto Forum:
  


Current Time: Fri Apr 25 12:01:41 CEST 2025

Total time taken to generate the page: 0.00610 seconds