Mold linker


Joel Winarske
 

Has anyone played around with the mold linker?



Curious what the build time difference might be on a large multi-core machine.


Joel


Khem Raj
 

On Tue, Feb 14, 2023 at 9:36 PM Joel Winarske <joel.winarske@...> wrote:

Has anyone played around with the mold linker?

https://github.com/rui314/mold


Curious what the build time difference might be on a large multi-core machine.
Yes, lightly. I found it similar to lld in many cases, only used it on
native links for chromium
it seems to be better at parallelization.



Joel



Ross Burton
 

On 15 Feb 2023, at 05:35, Joel Winarske via lists.yoctoproject.org <joel.winarske=gmail.com@...> wrote:

Has anyone played around with the mold linker?

https://github.com/rui314/mold


Curious what the build time difference might be on a large multi-core machine.
I have a branch in poky-contrib:ross/mold. It’s been blindly updated to the latest release but not tested, but the wins were not as impressive as one would hope for most builds.

Worth keeping an eye on though, and if you’re interested then my branch would be a good starting point, at least for showing where work to oe-core needs to be done to generalise the linker choice further.

Ross


Joel Winarske
 

Oh cool!

I'll run some tests on a few builds.

Thanks for pointing that out.


On Thu, Feb 16, 2023 at 12:42 PM Ross Burton <Ross.Burton@...> wrote:
On 15 Feb 2023, at 05:35, Joel Winarske via lists.yoctoproject.org <joel.winarske=gmail.com@...> wrote:
>
> Has anyone played around with the mold linker?
>
> https://github.com/rui314/mold
>
>
> Curious what the build time difference might be on a large multi-core machine.

I have a branch in poky-contrib:ross/mold.  It’s been blindly updated to the latest release but not tested, but the wins were not as impressive as one would hope for most builds.

Worth keeping an eye on though, and if you’re interested then my branch would be a good starting point, at least for showing where work to oe-core needs to be done to generalise the linker choice further.

Ross