Search code examples
luareverse-engineering

Documents about Lua 5.3 bytecode


I'm attempting to write a Lua 5.3 VM in another language (this is for experimentations only).

The resources I've found for the moment are :

As Lua breaks compatibility between each version, it's really difficult to find out how 5.3 bytecode works.

Do you have another source to share please ?


Solution

  • The official definition of the instructions of the Lua VM is in lopcodes.h, starting at OP_MOVE.