lua-users home
lua-l archive

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


Hi,

On Thu, May 28, 2015 at 11:28 AM, Hans Riekehof <Riekehof@schoeps.de> wrote:

Hi Bogdan,

 

you are right i will also open an issue for this in the elua github repo. But I still think that including memory mapping directly to the Lua language would be a nice thing. Not just for embedded systems.


I think I understand where you're coming from, but simply doing mmap() on precompiled bytecode will not help. Lua doesn't simply use the precompiled bytecode representation as-is, it will still allocate RAM to hold various variables and some internal data while reading the bytecode file. In other words, the compiled bytecode file is not a "frozen" memory image, it is still interpreted.

Best,
Bogdan

 

Best,

Hans