Re: [Haskell-cafe] Embedding the GHC API

2007-10-31 Thread Don Stewart
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.

mnislaih:
> Austin Seipp has written about this in his blog:
> 
> http://austin.youareinferior.net/?q=node/29
> 
> "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%)"
> 
> Cheers
> pepe
> 
> 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
> >
> >--
> >http://wagerlabs.com
> >
> >
> >
> >
> >
> >___
> >Haskell-Cafe mailing list
> >Haskell-Cafe@haskell.org
> >http://www.haskell.org/mailman/listinfo/haskell-cafe
> 
> ___
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Embedding the GHC API

2007-10-31 Thread pepe

Austin Seipp has written about this in his blog:

http://austin.youareinferior.net/?q=node/29

"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%)"


Cheers
pepe

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

--
http://wagerlabs.com





___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Embedding the GHC API

2007-10-31 Thread Joel Reymont

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

--
http://wagerlabs.com





___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe