incremental linking?
Duncan Coutts
duncan@coutts.uklinux.net
Wed, 27 Nov 2002 19:14:45 +0000
On Wed, 27 Nov 2002 15:20:44 -0000
"Simon Marlow" <simonmar@microsoft.com> wrote:
> > The runtime loader stuff I'm working on[1] takes around 10
> > seconds to compile ... and 3 minutes to link it with libHSbase
> > and libHSrts. (This is on a 500MHz PIII). Linking is a huge
> > bottleneck once you start linking in the Haskell libraries; ld
> > takes up enormous amounts of CPU time resolving symbols,
> > I think.
> 3 minutes???!!
>
> I just downloaded your example code, did './configure && make' and the
> link step took about 3 seconds. This is also on a 500MHz PIII.
>
> Are you sure you're not getting libHSbase over NFS? There may be
> something that ld is doing that causes a lot of NFS traffic.
I was getting the same thing when doing the runtime loader stuff. I'm
definately not using NFS, it's a stand-alone linux machine.
Mind you the runtime loader stuff is not exactly normal use of the
linker and ghc's library system. It links .o files in directly, bypassing
packages and such.
Duncan