lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

There are actually more chips with that kind of memory (512k Flash/64k RAM): ARMs from Atmel (one of which even has 128k of internal RAM), the new STM32 from ST, Also the LM3S chips from Luminary (which only have 256k of Flash though), lots of ARM chips from NXT, and the list can probably continue. The AVR32 is a great chip though, and eLua will add support for AT32UC3A0512 starting with its next version.
I had a report from someone in the eLua dev list that was able to compile and run rLua on an ARM with 128k Flash and 32k RAM. I don't know though what he was able to run on it, and I'd recommend at least 64k to run Lua. It the end, of course, it all depends on your actual requirements.


On Mon, Feb 9, 2009 at 12:03 PM, John Hind <> wrote:
Yes, a well designed and useful poster.

One nit-pick. I would prefer to quote "reasonable practical minimum"
requirements rather than the absolute minimum achievable in a pure
benchmarking exercise. On this basis 100K of flash seems low, and in the
embedded context it would be useful to talk about RAM also as these
resources are often very tight on embedded chips.

I would suggest that an important threshold has just recently been crossed
enabling a single chip Lua implementation to be a practical possibility:
512K Flash, 64K RAM (both bytes) with a 32Bit processing core. So far I've
only found one chip in this class, the Atmel AVR32, but other manufacturers
such as Microchip and Texas will no doubt soon catch up. I'm pretty sure in
my own mind that 512K is the practical minimum for a full Lua system with
libraries and space for the application (though a pure runtime virtual
machine might make do with half that). I'm less confident I understand the
RAM requirements though - any comments anyone?

In passing, it would be useful to have an open-source "Lua Chip" offering
on the pattern of the Arduino project (google it!), but aiming at the
higher-end of the microcontroller spectrum. A full Lua system with
networking, USB and extensive analog and digital i/o for under $30 should be
a feasible proposition! Anyone interested in a project to this effect?

-----Original Message-----
From: Timm S. Mueller Sent: 07 February 2009 16:33

Ok. My goal was to create a poster in A1 format (594 x 841mm), summing
up "Why should I use Lua" on an embedded systems fair as precisely and
in as few words as possible.