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.