Also, I find UPX essential in this kind of situation. It can make self-decompressing executables without a noticable slowdown (in fact, a speedup on network drives!).<br><br>Typically I see something like this:<br><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> ghc: <b>54.6 MB</b></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> after 'strip': <b>33.1 MB</b></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> after UPX: <b>6.2</b> <b> MB</b></span><br style="font-family: courier new,monospace;"><br>-Ryan<br style="font-family: courier new,monospace;"><br><br><div class="gmail_quote">
On Tue, Oct 11, 2011 at 4:00 PM, Joachim Breitner <span dir="ltr"><<a href="mailto:mail@joachim-breitner.de">mail@joachim-breitner.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
Am Dienstag, den 11.10.2011, 11:02 -0700 schrieb Iavor Diatchki:<br>
<div class="im">> The context is that I need to make a demo VM, which has a limited<br>
> amount of space, and I'd like to have GHC installed on the system but<br>
> the default GHC installation (~700MB) does not fit. The installation<br>
> does not need to be complete---I don't need documentation, or<br>
> profiling, or Template Haskell---and I only need to install a fairly<br>
> limited set of libraries, just enough to build my project. I'd be<br>
> happy to build a custom version of GHC, if that's the easiest way to<br>
> achieve the goal.<br>
><br>
> So, if you have experience doing something similar, or you know of<br>
> what might be the best way to approach the problem, advice would be<br>
> most welcome!<br>
<br>
</div>The debian ghc package comes without profiling (in ghc-prof) and<br>
documentation (ghc-doc). I’d be happy to hear that someone actually<br>
profits from that split :-) Installed size is about 250MB. So also in<br>
terms of efforts it might be easiest to bootstrap a minimal Debian and<br>
install ghc on it.<br>
<br>
Greetings,<br>
Joachim<br>
<br>
PS: I’m a Debian Developer, so of course my advice is biased :-)<br>
<font color="#888888"><br>
<br>
--<br>
Joachim "nomeata" Breitner<br>
<a href="mailto:mail@joachim-breitner.de">mail@joachim-breitner.de</a> | <a href="mailto:nomeata@debian.org">nomeata@debian.org</a> | GPG: 0x4743206C<br>
xmpp: <a href="mailto:nomeata@joachim-breitner.de">nomeata@joachim-breitner.de</a> | <a href="http://www.joachim-breitner.de/" target="_blank">http://www.joachim-breitner.de/</a><br>
<br>
</font><br>_______________________________________________<br>
Glasgow-haskell-users mailing list<br>
<a href="mailto:Glasgow-haskell-users@haskell.org">Glasgow-haskell-users@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/glasgow-haskell-users" target="_blank">http://www.haskell.org/mailman/listinfo/glasgow-haskell-users</a><br>
<br></blockquote></div><br>