Welcome, Guest. Please login or register.

Author Topic: 68k -> ??? JIT  (Read 702 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline bloodlineTopic starter

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: 68k -> ??? JIT
« Reply #14 from previous page: November 03, 2014, 09:13:07 AM »
Having spent a few days reading, an idea that occurred to me was a 68k-> asm.js compiler and then take advantage of the various JavaScript JITs to speed emulation.

Offline psxphill

Re: 68k -> ??? JIT
« Reply #15 on: November 03, 2014, 09:24:41 AM »
Quote from: bloodline;776581
Having spent a few days reading, an idea that occurred to me was a 68k-> asm.js compiler and then take advantage of the various JavaScript JITs to speed emulation.

I'm not sure that will be as fast as using LVVM to generate native code, although for running in a browser I think you can use LVVM to generate asm.js (or at least there are people working on something like that).

http://en.wikipedia.org/wiki/Emscripten

I don't know how dynamic it can be though, i.e. whether it can cope with self modifying code or even programs loaded into ram.
 
 To work you'll need to be JIT the 68k to asm.js and detecting when to push new asm.js through to the JavaScript JIT. If changing one byte in memory means flushing the entire JavaScript JIT cache then you'd be quicker running an interpreter. I don't even know if LVVM is really up to being used for a general purpose emulator (it might however work well in a contrived case where specific assumptions can be made).
« Last Edit: November 03, 2014, 09:31:28 AM by psxphill »