[Haskell-cafe] Embedding the GHC API
dons at galois.com
Wed Oct 31 14:04:39 EDT 2007
I often use this in my cabal ghc-options:
ghc-options: -funbox-strict-fields -O2 -fasm -Wall -optl-Wl,-s
the last runs ld's strip automatically.
> Austin Seipp has written about this in his blog:
> "I will take this time to point out that using the GHC API in your
> applications results in *large* executables. The Interact example
> above when compiled with vanilla --make options resulted in a whopping
> 17mb executable. I've observed however you can mitigate this by an
> enormous amount using the tools strip and gzexe, taking it down to a
> light 2.5mb (a size reduction of about 85%)"
> On 31/10/2007, at 9:44, Joel Reymont wrote:
> >Has anyone tried to embed GHC as a library recently?
> >What is the size of the resulting binary?
> >I'm assuming a bare minimum of needed libraries.
> > Thanks, Joel
> >Haskell-Cafe mailing list
> >Haskell-Cafe at haskell.org
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe