Re: 128KB Flash and 20KB RAM,can it with elua?

Posted by gduarte on
URL: http://elua-development.15.s1.nabble.com/128KB-Flash-and-20KB-RAM-can-it-with-elua-tp7578003p7578005.html

But 20k of RAM is enough to run eLua?

Le 19 mai 2013 13:06, "Martin Guy" <[hidden email]> a écrit :
On 18 May 2013 12:23, sugar <[hidden email]> wrote:
> I have a stm32 board with 128KB Flash and 20KB RAM, can i use it with elua.

I did exactly this for the mizar32 last week, targetting 120K to be exact.
Use the "Mizar32-v0.9" branch, which has load of code-size hacks,
apply the AT32UC3A0128 configurations from
src/platform/avr32/MIZAR32/mizar32_conf.h and src/lua/luaconf.h to
your board and compile with
  scons target=lualong allocator=simple optram=0 rostrings=0

In our case this allowed us to fit in all the modules except net.*()

If you need FP or net for some reason, you'll need to disable other
Lua modules or features to make space.

Good luck!

   M
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev

_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev