The binary files created by luac are portable only among architectures with the same word size and byte order.
So the answer is no. (I also tested with 32-bit and 64-bit computers This exact situation.) One thing you can do is to make sure that your Lua interpreter is compiled to 32-bit (even on a 64-bit computer), and I believe Lua will accept it.
< /p>
Can compiled Lua files (32-bit *.luac files) run on 64-bit systems?
Quoting luac man page:
The binary files created by luac are portable only among architectures with the same word size and byte order.
So the answer is no. (I also tested this exact situation with 32-bit and 64-bit computers.) One thing you can do The thing is to make sure your Lua interpreter is compiled as 32-bit (even on a 64-bit computer), and I believe Lua will accept it.