lua-users home
lua-l archive

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



The poster wants to execute directly from a bytecode file via memory-mapping to save on RAM footprint by avoiding the need to copy/load the bytecode into memory before execution. The issue of portability isn't a problem here since (presumably) the bytecode and Lua interpreter are all embedded in the flash/ROM image at the same time.

Given that Lua is designed for embedded systems it’s a bit surprising that this isn’t part of the core API.

Ummm, of course there's embedding and then there's embedding.

Lua was designed as an embedded *language*, in order to extend & enhance host applications [read: other software].

Running Lua on embedded *systems* only became somewhat of a sport later on in the life of Lua.

Ashwin.