Re: 3DS

  • From: Mike Pall <mike-1207@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 11 Jul 2012 21:34:39 +0200

Brian Weed wrote:
> Does anyone here know if anyone has successfully used LuaJIT on the 3DS?

I can't answer that. But it should work -- theoretically.

You'll probably need to work disable the bundled memory allocator,
work on OS integration (stubbing out unknown OS calls) and disable
the FFI and the JIT compiler for now.

Maybe add the __aeabi_* calls from libgcc, if the SDK doesn't
support the soft-float helper calls (the ARM/VFP port of LuaJIT is
still under development).

Not sure the 3DS allows runtime code generation. But if you want
to enable the JIT compiler, you'd need to find a way to mark
memory as executable (if it isn't executable by default).

In case you're going that way, please let us know how far you got!


  • References:
    • 3DS
      • From: Brian Weed

Other related posts:

  • » 3DS- Brian Weed
  • » Re: 3DS - Mike Pall