|
|
| Author |
Message |
|
| bbmaj7 |
Posted: Sat Jul 14, 2007 12:08 pm |
|
|
|
User
Joined: 14 Jul 2007
Posts: 30
Location: Australia
|
I haven't found any articles or information that describes putting erlang on embedded devices with small memory and storage.
Can anyone give me an idea of what are the minimum requirements (excluding kernel and OS) to run a minimal erlang environment.
eg. 4M RAM and 8M FLASH? Twice that? 4 times?
I'm looking for a ballpark to decide if I go looking more deeply.
How much for just the pure erlang VM with only BIFs.
Will erlang run on ARM? |
|
|
| Back to top |
|
| francesco |
Posted: Mon Jul 16, 2007 11:43 am |
|
|
|
User
Joined: 07 Jul 2006
Posts: 249
Location: London
|
The smallest embedded Erlang system I worked on had 16 mb of memory which we had to very quickly increase to 32. That was a long time ago People have managed to reduce that by stripping all unnecessary modules and applications (bypassing the OTP release handling and design principles). References to it are in the Erlang mailing list.
It all depends on what you want to achieve and what time and effort you are willing to put into it, as using OTP and the release handling is one (but not the only) of the arguments to using Erlang in the first place. My advice would be to do some simple benchmarking as it is very hard to give advice.
For embedded systems, there was a feature which allowed you to load Erlang modules over the network without the need of a local copy residing on the flash. I looked everywhere for it, but could unfortunately not find any documentation (This was on the VxWorks port 10 years ago). The closest we were able to dig out was the code:load_binary/3 call. (Binaries were originally introduced in Erlang for this very purpose).
You should be ok with an ARM processor. I think even HIPE is available on them. As long as you have access to GCC and a posix compliant OS, porting the VM to that architecture is a straight forward task.
Hope the above helps,
Francesco |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|