[erlang-questions] tiny erlang

Håkan Mattsson hawk.mattsson@REDACTED
Thu Feb 18 18:31:10 CET 2016


How much do you gain doing it your way compared to use Reltool to build the
release?

Assuming you instruct Reltool to only include your four applications, build
compressed .ez files, strip the beams, skip unneccessary system files etc.

/Håkan

On Thu, Feb 18, 2016 at 1:21 PM, Joe Armstrong <erlang@REDACTED> wrote:

> Hello
>
> I want to make a small erlang distribution for an embedded device - the
> process
> is rather simple:
>
>     1) strip the beam executable
>     2) for each library in {stdlib, kernerl, compiler, sasl} do
>        Compress all the beam code and remove debug symbols
>        squash everthing into a single packed file
>     3) Hack the code loader to read from the single packed beam file
>     4) Tweak the shell scripts to start Erlang
>
> At a guess we're down to c. 6 MB
>
> I have done this on *several* occassions - and am getting a bit fed up
> doing it over and over again.
>
> Has anybody done this recently - and should not something like this be
> in the standard distribution?
>
> Cheers
>
> /Joe
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160218/696973e2/attachment.htm>


More information about the erlang-questions mailing list