Re: Luajit interpreter question

  • From: lex pops <lexpops12@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 3 Sep 2014 10:56:02 -0700

On Tue, Sep 2, 2014 at 5:45 PM, Mike Pall <mike-1409@xxxxxxxxxx> wrote:
> Daniel Kolesa wrote:
>> 2014-09-02 21:20 GMT+01:00 Dibyendu Majumdar <mobile@xxxxxxxxxxxxxxx>:
>> > I have a question regarding the Luajit interpreter. Is it possible to
>> > write the Luajit bytecode interpreter in C - or does it rely upon features
>> > only available in assembly language?
>>
>> I don't see why it wouldn't be possible to write a VM that interprets
>> LuaJIT bytecode. But you're gonna have to deal with the FFI (which will
>> need either platform specific code or use something like libffi) if you
>> want it truly compatible.
>
> Sure ... and the transitions to and from JIT-compiled code,
> including register and stack snapshot handling. And error handling
> plus frame unwinding. And bytecode recording. And metamethod
> continuations.

What are metamethod continuations?

Other related posts: