[erlang-questions] tiny erlang

Joe Armstrong erlang@REDACTED
Thu Feb 18 13:21:28 CET 2016


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



More information about the erlang-questions mailing list