lua-users home
lua-l archive

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



Mark Junker wrote:
2. Is it possible to compile Lua in a way that disables all file i/o?

Just don't compile liolib.c and loadlib.c and don't call luaopen_io and luaopen_loadlib.

1. For the next Lua version, can you save the compiled Lua script in a machine-independent way?

Currently you can run luac on an Intel PC and execute the compiled script on a PowerPC so long as they are both 32 bit processors. Lua will do the endian switch.

If you want to leave out the parser on the target, have a look at
lua-5.0/etc/noparser.c

- Peter