[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Execution of pre compiled lua code from memory mapped files
- From: "Ashwin Hirschi" <lua-l@...>
- Date: Fri, 29 May 2015 03:32:52 +0200
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.