lua-users home
lua-l archive

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




On Wed, Jul 13, 2011 at 7:30 PM, imo <imo@mizera.cz> wrote:
> Look at NXP's
> LPC range: available up to 256kB of RAM and a
> local memory bus should you need more.
Rob, yes, there are "big" controllers with memory bus available. As
I am running pic32Lua on a pic32mx695 (128kB of internal ram) and I
know the eLua is also coping desperately with the ram shortage on
those smaller ARMs, I've been curious whether an access from the VM
to the bytecode via an user defined generic ramwr/ramrd c-functions
are easy to implement (as this can create an access to any hw ram
implementation of any bytecode size) or not. It seems it would be
very difficult, moreover, there is a low demand for such change in
the VM. The Lua is running fast on pic32mx, however the 100kB
internal ram available for the bytecode is not big enough for any
larger project. FYI - the "life.lua" with LIFE(32,32) fills the ram
fully.
Thanks
-imo


Does that processor have something like the memory protection unit on the arms?  You could easily change the Lua allocator to use your own function that 'allocates' from a protected region and use the fault handler to do the access.

Would be slow as molasses though I would think, and depending on the priority of the handler it may slow down critical tasks.  Just an idea.


Mike