<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">How much do you gain doing it your way compared to use Reltool to build the release?<br><br>Assuming you instruct Reltool to only include your four applications, build compressed .ez files, strip the beams, skip unneccessary system files etc.<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div>/Håkan</div></div></div></div>
<br><div class="gmail_quote">On Thu, Feb 18, 2016 at 1:21 PM, Joe Armstrong <span dir="ltr"><<a href="mailto:erlang@gmail.com" target="_blank">erlang@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello<br>
<br>
I want to make a small erlang distribution for an embedded device - the process<br>
is rather simple:<br>
<br>
1) strip the beam executable<br>
2) for each library in {stdlib, kernerl, compiler, sasl} do<br>
Compress all the beam code and remove debug symbols<br>
squash everthing into a single packed file<br>
3) Hack the code loader to read from the single packed beam file<br>
4) Tweak the shell scripts to start Erlang<br>
<br>
At a guess we're down to c. 6 MB<br>
<br>
I have done this on *several* occassions - and am getting a bit fed up<br>
doing it over and over again.<br>
<br>
Has anybody done this recently - and should not something like this be<br>
in the standard distribution?<br>
<br>
Cheers<br>
<br>
/Joe<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" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br></div></div>