I am trying to decompile a LuaJIT bytecode file. I managed to disassemble it (but cannot find a way to assemble it). So I'm considering writing some software to convert from LuaJIT bytecode to standard Lua bytecode, which will then work through LuaDec.
But what are the differences between the LuaJIT bytecode and the standard Lua bytecode?
The differences are quite significant. LuaJIT uses a lot more opcodes than standard Lua, because it specializes in some operations, such as returning from a function compared to returning with 1 return value, etc.
, , Lua opcodes LuaJIT opcodes , , ...
BC , , , LuaJIT - , IIRC - LuaDec, - LuaJIT.
, LuaJIT, -, C/h/obj/o, , .