Posted by
Martin Guy on
URL: http://elua-development.15.s1.nabble.com/128KB-Flash-and-20KB-RAM-can-it-with-elua-tp7578003p7578020.html
On 20 May 2013 22:50, James Snyder <
[hidden email]> wrote:
> 20 kB of SRAM is going to be tight. I've worked with a target that has 32
> kB of SRAM and that one was usable with some modification
I just tried eLua with 20K of RAM using the Mizar32-128K config +
rostrings + optram, and removing TERM to make code space for the RAM
optimisations, and hacking the memory config to pretend there are only
20Kbytes.
The interpreter starts up with console on UART and you can run
one-liners like "print(42)" or "print(collectgarbage("count"))" (which
says "4", then "5" a few times, then "6" a few times, then "not enough
memory").
James, your memory leak patch improves things slightly: in 20K you can
press Enter 17 times before it runs out of memory instead of 16, so
it's doing something but there is another heap leak somewhere in the
path from the Lua prompt back to Lua prompt.
So the answer is: yes, provided your Lua application will work in a
few K of heap.
M
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev