Linking in Dead Code

Don Stewart dons00 at gmail.com
Sat May 14 20:12:12 CEST 2011


When compiled with "split objs" GHC makes it possible for the linker
to do dead code stripping. Make sure your GHC has split-objs on.

On Fri, May 13, 2011 at 4:04 AM, Guy <guytsalmaves-h at yahoo.com> wrote:
> If only 1% of an imported module is used, GHC will link in the entire
> module. Are there any plans, or at least some ideas, to rectify this? One
> severe example of this is qtHaskell, where importing the top-level module
> causes glacial compile (actually link) times and huge executables. Strip can
> fix the executable size (why does GHC not do this automatically?), but
> linking remains a problem.
>
>
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>



More information about the Glasgow-haskell-users mailing list