Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PPSSPP for Windows Phone (8)?
10-25-2014, 09:52 AM (This post was last modified: 10-25-2014 10:10 AM by Dissonance.)
Post: #14
RE: PPSSPP for Windows Phone (8)?
Sorry to bump an old (and tired) thread/subject. But I haven't seen a proper technical discussion as to how EmiPSX was possible on Windows Phone (and it does actually run on Lumia 520 albeit not as well). Hopefully this will spur a bit of debate rather than the usual entrenched opinion I keep reading along the lines of "can't execute data so emulation can't be done except with a standard interpreter", which is just plain wrong.

I believe (based on conversations with the author) that EmiPSX uses threaded interpretation to achieve the necessary performance to run on a Windows Phone. In basic terms this works by creating an array of function pointers indexed by the program counter which is populated and updated as code is interpretted (much like a JIT would). Each time an instruction is decoded through the interpreter's standard fetch/decode a function pointer to the decoded instruction is cached. When the same address is called again the emulator skips the decode and calls straight into the appropriate instruction code. The idea being that frequently run portions of the code become "threaded" (a contiguous sequence of subroutine calls) rather than a sequences of pipeline disrupting conditional branches (as done in a typical interpreter's cascaded decode of an instruction). Threaded interpretation does not require data to be executed, only that data members be able to point to executable code (which is allowed in Windows Phone). Obviously threaded code is less efficient than a dynamic binary translation of a basic block due to the call overhead but it does offer a drastic improvement over a pure interpreter.

Now I'm not expecting this to persuade PPSSPP's developers to go ahead and attempt a port to Windows Phone, but I would be interested in a discussion of the relative performance gains to be had from threaded interpretation and I do consider EmiPSX to be a sound proof of concept for 5th gen console emulation on Windows Phone and RT platforms. By the way I have a background in development of soft-core processors and most of the code I write day to day is assembly or HDL of one flavor or another, so you can go ahead and use big words.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
PPSSPP for Windows Phone (8)? - Joe Clame - 06-02-2013, 08:35 PM
RE: PPSSPP for Windows Phone (8)? - Henrik - 06-02-2013, 08:48 PM
RE: PPSSPP for Windows Phone (8)? - stodag - 06-02-2013, 08:53 PM
RE: PPSSPP for Windows Phone (8)? - arg274 - 11-23-2013, 05:03 PM
RE: PPSSPP for Windows Phone (8)? - Henrik - 11-24-2013, 01:40 PM
RE: PPSSPP for Windows Phone (8)? - xsacha - 11-24-2013, 02:41 AM
RE: PPSSPP for Windows Phone (8)? - xsacha - 11-25-2013, 03:48 AM
RE: PPSSPP for Windows Phone (8)? - stodag - 01-11-2014, 10:46 AM
RE: PPSSPP for Windows Phone (8)? - yushir - 05-14-2014, 01:51 PM
RE: PPSSPP for Windows Phone (8)? - Henrik - 05-14-2014, 06:04 PM
RE: PPSSPP for Windows Phone (8)? - Dissonance - 10-25-2014 09:52 AM
RE: PPSSPP for Windows Phone (8)? - Bigpet - 10-25-2014, 11:43 AM
RE: PPSSPP for Windows Phone (8)? - Henrik - 10-29-2014, 12:35 AM
RE: PPSSPP for Windows Phone (8)? - Bigpet - 10-29-2014, 07:09 PM
RE: PPSSPP for Windows Phone (8)? - iCEQB - 05-15-2015, 08:44 PM
RE: PPSSPP for Windows Phone (8)? - Bigpet - 05-15-2015, 10:11 PM
RE: PPSSPP for Windows Phone (8)? - iCEQB - 05-16-2015, 09:18 AM

Forum Jump: