Re: crosscompile luajit(2.1) bytecode for arm32?

  • From: Mike Pall <mike-1506@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 19 Jun 2015 16:52:24 +0200

小冶 wrote:

does it mean we can crosscompile the bytecode for arm in a 64bit-macos?

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, e.g. x86, x64, ARM32 etc.).

But you can build LuaJIT/x64 for Linux, OSX etc. to use the new
LJ_GC64 mode (interpreter only):

make XCFLAGS=-DLUAJIT_ENABLE_GC64

This special build of LuaJIT can be used to generate bytecode for
ARM64 targets.

[
For instructions on how to cross-compile bytecode from Windows,
see here:

//www.freelists.org/post/luajit/Is-the-bytecode-generated-by-win32-luajit-compatible-with-ios-arm64-luajit,1
]

--Mike

Other related posts: