Can anyone tell me where to find Lua's bytecode specification? I've been searching for 15 minutes, and I can't find anything.
相关问题
- How to get the return code of a shell script in lu
- Is there a way to report errors in Apple documenta
- Accessing Light userdata in Lua
- Wireshark dissector that works with tls/ssl
- Email address validation using corona sdk
相关文章
- java.lang.VerifyError: Stack map does not match th
- Add XML documentation / comments to properties/fie
- HelpInsight documentation in Delphi 2007
- Lua Integer type
- Is C# code compiled to native binaries?
- How do I document a constructor for a class using
- First character uppercase Lua
- Facebook Android SDK request parameters: where fin
The official definition is in lopcodes.h.
You can read The Implementation of Lua 5.0 online.
Maybe A No-Frills Introduction to Lua 5.1 VM Instructions contains what you're looking for?
There is also a table of the Lua 5.0 instruction set (Figure 5) in:
You can find the full text with a search on Google Scholar and I believe it's on lua.org as well. This reference is used by the Lua page on Wikipedia, which is always a good place to look for such things. :-)
The only specifications for Lua are the language, standard libraries, and the C API. The creators of Lua intentionally left the VM unspecified for a couple main reasons:
This means, for example, that you generally shouldn't use the Lua VM as a target for a compiler. If you'd like to know how the official Lua distribution's VM works as an example for your own curiosity, see the other answers.