Linking is the slowest part of D's compilation process– can we use mold to speed it up?

deadalnix deadalnix at
Fri Feb 26 17:01:53 UTC 2021

On Friday, 26 February 2021 at 07:35:16 UTC, Walter Bright wrote:
> On 2/25/2021 6:26 PM, deadalnix wrote:
>> On Friday, 26 February 2021 at 01:52:04 UTC, Walter Bright 
>> wrote:
>>> Optlink could do a full link faster than MS-Link could do an 
>>> incremental link.
>> That is also the position of the mold guy. He think that the 
>> extra work to do incremental linking offset the gains so 
>> decided to not even try to do it.
>> Hard to know which is right.
> Incremental linking also tends to suffer from all kinds of 
> weird bugs. Enough so that one tends to give up and go full 
> linking anyway.

That is why they only do it on any type of code, but one the code 
that has been compiled by their compiler in the right way. So no 
incremental link for release build for instance, only debug 

More information about the Digitalmars-d mailing list