Rolling your own dynamic linker

Simon Marlow marlowsd at gmail.com
Wed Nov 4 04:02:09 EST 2009


On 04/11/2009 06:48, Krasimir Angelov wrote:
> On Mon, Nov 2, 2009 at 2:02 PM, Simon Marlow<marlowsd at gmail.com>  wrote:
>> The main sticking point with using dlopen() exclusively, as Duncan pointed
>> out, is that we need to link plain .o files in GHCi.
>
> Wouldn't the dynamic linking slow down the linking? This will
> eliminate the advantage of the faster loading that the dynamic
> libraries give you.

Not sure what you mean here.  dlopen() should be approximately as fast 
as the RTS linker, since it has to do the same work.  It may do some of 
that work on demand rather than up front, however.

Cheers,
	Simon



More information about the Cvs-ghc mailing list