Closed shaoner closed 4 years ago
This is expected: lua bytecode is specific to the ABI of machine you compiled it on and the flags you used to compile lua. For a "standard" x86_64 computer, you can often make fengari-compatible bytecode by compiling lua with -DLUA_INT_TYPE=LUA_INT_LONG
. See https://github.com/fengari-lua/fengari#integers
Hello,
I've tried to re-use the bytecode produced by
fengaric
in lua and it doesn't seem to work, so I'm wondering if it's supposed to, or if my lua version is incompatible or if there's a way to do it?I made sure to use lua 5.3 (tested with 5.3.0 and 5.3.5) but the bytecode seems to differ
vs
To give more context, i'd like to send the bytecode version from nodejs (as a buffer) to program running in C that embeds the lua compiler.