Re: Is the bytecode generated by win32 luajit compatible with ios arm64 luajit ?

  • From: Mike Pall <mike-1505@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sat, 30 May 2015 13:38:50 +0200

liulijie@xxxxxxxxxxx wrote:

I converted my lua code to bytecode on win32 by luajit, and
loaded the bytecode on iOS arm64, but luajit said cannot load
incompatible bytecode.Is it possible to convert an compitible
bytecode with arm64 on win32?

The bytecode for targets in LJ_GC64 mode (only ARM64 right now) is
not compatible with the bytecode for the non-LJ_GC64 mode builds
(all others).

But you can build LuaJIT/x64 on Windows to use the new LJ_GC64 mode
(interpreter only) by changing msvcbuild.bat:
- Add /DLUAJIT_ENABLE_GC64 to LJCOMPILE
- Remove -D JIT
- Replace vm_x86.dasc with vm_x64.dasc

Then run msvcbuild.bat and create a x64 build. This special
luajit.exe can be used to generate bytecode for ARM64 targets.

--Mike

Other related posts: