[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Can't pass a struct by value to LuaJIT FFI varargs function?
- From: Mike Pall <mikelu-1101@...>
- Date: Tue, 25 Jan 2011 02:33:27 +0100
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.