lua-users home
lua-l archive

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

You could _probably_ implement a custom allocator and modify the VM to switch to a certain bank when loading a Lua object, but 16k seems to be a very small window. Don't know how much you can do with it.


On Fri, Mar 27, 2009 at 6:14 PM, Alexander Goldstone <> wrote:
Due to restrictions in a microcontroller, we have 1MB available but can
only address it in 16KB chunks.

We have successfully ported Lua but are running out of memory due to
this limitation so our thought is to have Lua use a 'paged' or 'banked'
memory scheme (i.e. addressing all of the 1MB by switching between pages).

Has anybody attempted this kind of alteration and/or can you point us in
the right direction as to how we may get started with this if indeed the
Lua source would even allow it without a substantial re-write?

Thanks in advance.