Re: lua5: questions & suggestions
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: lua5: questions & suggestions
- From: Peter Shook <pshook@...>
- Date: 2003年7月31日 00:28:15 -0400
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