lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Wesley Smith wrote:
> > Well, maybe the pure LuaJIT interpreter (the speedup isn't too
> > shabby). The JIT compiler requires the ability to mark memory
> > pages as executable at runtime. AFAIK this is blocked by the
> > kernel on a non-unlocked phone. But iOS is not a primary target,
> > so you'll have to find out yourself.
> 
> Out of curiosity, might there be a way to precompile whatever code the
> FFI generates or is the marking of memory pages required by the
> runtime and not just the compiler?

The question that was asked is not related to the FFI. The FFI
works even without the JIT compiler (but it's really slow then).

Ahead-of-time compilation would be very difficult to integrate
into a trace compiler.

--Mike