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

James Lu jamtlu at gmail.com
Thu Feb 25 22:54:57 UTC 2021


On Thursday, 25 February 2021 at 15:42:22 UTC, H. S. Teoh wrote:
> On Wed, Feb 24, 2021 at 11:53:34PM +0000, deadalnix via 
> Digitalmars-d wrote:
>> [...]
> [...]
>
> This is very interesting.  I wonder if there's a way to 
> incrementally update the executable, instead of starting from 
> scratch each time?
>
> [...]

I'm more interested in a "JIT" that remembers 
object-file-to-in-memory-function-pointers and overwrites them 
with trampolines. You could use fork() to make a reloadable 
executable that way. Of course, you'd need a new function loading 
system, which could be difficult...


More information about the Digitalmars-d mailing list