[Haskell-cafe] Re: How to decrease ghc link time

Simon Marlow simonmarhaskell at gmail.com
Wed May 9 07:54:49 EDT 2007


Georg Sauthoff wrote:

> well, I work with a Haskell project which I regulary compile with ghc.
> 
> I am a bit unhappy with the link time of the project (i.e. the time ghc
> needs to link everyting).
> 
> The project consinst of ~60 Haskell and ~25 foreign files.
> Some parts of the project are organized like a 'cluster', i.e. the
> foreign part has only one function, which is used from Haskell-Code.
> 
> What could I do to improve the link time?

Make sure everything being linked is on the local file system (or use remote 
filesystems that can be cached locally).

GHC itself links in 2-3 seconds here on an x86_64/Linux machine, which I think 
is pretty reasonable.  Windows is much slower though.

Cheers,
	Simon


More information about the Haskell-Cafe mailing list