[erlang-questions] Building small erlang vm suitable for bundle with app.
Gustav Simonsson
gustav.simonsson@REDACTED
Wed Dec 14 09:41:42 CET 2011
Yes, you can remove either the SMP or the non-SMP beam depending on your target architecture.
Also the only things you need to just run Erlang is ERTS and the stdlib and kernel libs.
If you want to reduce the disk usage as much as possibly you can read on methods
in chapter 3.2 and results in chapter 5.1 in the following thesis:
http://urn.kb.se/resolve?urn=urn:nbn:se:uu:diva-156435
Regards,
Gustav Simonsson
Sent from my PC
----- Original Message -----
From: "dmitry kolesnikov" <dmkolesnikov@REDACTED>
To: "Gustav Simonsson" <gustav.simonsson@REDACTED>, "Albin Stigö" <albin.stigo@REDACTED>
Cc: erlang-questions@REDACTED
Sent: Wednesday, 14 December, 2011 9:22:03 AM
Subject: Re: [erlang-questions] Building small erlang vm suitable for bundle with app.
Hi,
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.
as an example *.rel package contains following libraries:
{kernel, "2.14.5"},
{stdlib, "1.17.5"},
{sasl, "2.1.10"},
{crypto, "2.0.4"},
{public_key, "0.13"},
{ssl, "4.1.6"},
{inets, "5.7.1"},
{compiler, "4.7.5"},
{syntax_tools, "1.6.7.1"},
{xmerl, "1.2.10"},
{mochiweb, "2.3.0"}
...
systools:make_tar($$n, [{erts, code:root_dir()}]) %% do not put any extra dirs here
most heavy components are VM by itself
-rwxr-xr-x 1 kolesnik wheel 7.7M Oct 19 20:53 beam
-rwxr-xr-x 1 kolesnik wheel 9.6M Oct 19 20:53 beam.smp
- Dmitry
On Tue, Dec 13, 2011 at 10:59 AM, Gustav Simonsson < gustav.simonsson@REDACTED > wrote:
Hi!
This is a scrappy half-completed bash script I used to generate
a small Erlang release. It's something I hope can eventually grow
into a more general and stable tool for generating Erlang releases.
It does contain some useful things for reducing the size of an
Erlang release.
Also thanks to Adam Lindberg for helping out with it.
https://github.com/Gustav-Simonsson/Stripped-Erlang/blob/master/minimal_erlang.sh
Regards,
Gustav Simonsson
Sent from my PC
----- Original Message -----
From: "Albin Stigö" < albin.stigo@REDACTED >
To: erlang-questions@REDACTED
Sent: Thursday, December 8, 2011 11:27:39 AM
Subject: [erlang-questions] Building small erlang vm suitable for bundle with app.
Hi,
I'm quite new to Erlang and this list so I hope I'm posting in the right place?
I would like to use Erlang code (couchdb) in an Mac OS X app I'm
developing and I would like to bundle it with my app. Exactly like the
Mac OS X version of Wings3D is bundling a version of erlang.
I was wondering if someone kind provide me with some ideas of how to
compile a smaller version of the Erlang VM without the developing
tools etc?
Cheers,
Albin
_______________________________________________
erlang-questions mailing list
erlang-questions@REDACTED
http://erlang.org/mailman/listinfo/erlang-questions
_______________________________________________
erlang-questions mailing list
erlang-questions@REDACTED
http://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list