Hi,<div><br></div><div>I have not yet spent too much time to investigate how to build 2MB self-sustainable package but systools gives me about 14MB with possible reduction to 7 - 9MB on debian 64bit.</div><div><br></div><div>
as an example *.rel package contains following libraries:</div><div><div>{kernel, "2.14.5"},</div><div>{stdlib, "1.17.5"},</div><div>{sasl,   "2.1.10"},</div><div>{crypto, "2.0.4"},</div>
<div>{public_key, "0.13"},</div><div>{ssl,    "4.1.6"},</div><div>{inets,  "5.7.1"},</div><div>{compiler, "4.7.5"},</div><div>{syntax_tools, "1.6.7.1"},</div><div>{xmerl,    "1.2.10"},</div>
<div>{mochiweb, "2.3.0"}</div></div><div>...</div><div><br></div><div>systools:make_tar($$n, [{erts, code:root_dir()}]) %% do not put any extra dirs here </div><div><br></div><div>most heavy components are VM by itself </div>
<div><div>-rwxr-xr-x   1 kolesnik  wheel   7.7M Oct 19 20:53 beam</div><div>-rwxr-xr-x   1 kolesnik  wheel   9.6M Oct 19 20:53 beam.smp</div></div><div><br></div><div>- Dmitry<br><br><div class="gmail_quote">On Tue, Dec 13, 2011 at 10:59 AM, Gustav Simonsson <span dir="ltr"><<a href="mailto:gustav.simonsson@erlang-solutions.com">gustav.simonsson@erlang-solutions.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi!<br>
<br>
This is a scrappy half-completed bash script I used to generate<br>
a small Erlang release. It's something I hope can eventually grow<br>
into a more general and stable tool for generating Erlang releases.<br>
<br>
It does contain some useful things for reducing the size of an<br>
Erlang release.<br>
<br>
Also thanks to Adam Lindberg for helping out with it.<br>
<br>
<a href="https://github.com/Gustav-Simonsson/Stripped-Erlang/blob/master/minimal_erlang.sh" target="_blank">https://github.com/Gustav-Simonsson/Stripped-Erlang/blob/master/minimal_erlang.sh</a><br>
<br>
Regards,<br>
Gustav Simonsson<br>
<br>
Sent from my PC<br>
<div><div></div><div class="h5"><br>
----- Original Message -----<br>
From: "Albin Stigö" <<a href="mailto:albin.stigo@gmail.com">albin.stigo@gmail.com</a>><br>
To: <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
Sent: Thursday, December 8, 2011 11:27:39 AM<br>
Subject: [erlang-questions] Building small erlang vm suitable for bundle        with app.<br>
<br>
Hi,<br>
<br>
I'm quite new to Erlang and this list so I hope I'm posting in the right place?<br>
<br>
I would like to use Erlang code (couchdb) in an Mac OS X app I'm<br>
developing and I would like to bundle it with my app. Exactly like the<br>
Mac OS X version of Wings3D is bundling a version of erlang.<br>
<br>
I was wondering if someone kind provide me with some ideas of how to<br>
compile a smaller version of the Erlang VM without the developing<br>
tools etc?<br>
<br>
Cheers,<br>
Albin<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>