Bytecode portability

  • From: Shmuel Zeigerman <shmuz@xxxxxxxxxx>
  • To: LuaJIT list <luajit@xxxxxxxxxxxxx>
  • Date: Sun, 10 Jan 2021 18:55:42 +0200

Hello,

The documentation states that "luajit -b -t raw" generates portable bytecode.
However when I try to run the file compiled by 32-bit luajit with 64-bit luajit it says:
"luajit.exe: 123.raw: cannot load incompatible bytecode".

To my understanding if the bytecode is portable the compiled file should run fine with 64-bit LuaJIT.
But it isn't the case. Could somebody explain?

(I'm using the latest (January 02) LuaJIT commit from GitHub).

--
Shmuel


Other related posts: