[quote]Yes, that would be really interesting although I wouldn’t know where to start
[/quote]
Cool. Can you IM me? I’m on Yahoo as rreyelts.
[quote]I did have a look at a site which explains how to do static binary translation (so the original machine code is translated to java, and removing dead flags and such), and that seems to me the way to speed up CPU emulation the most, but I’m not sure (not knowing much about dynamic recompilation if anything)…
[/quote]
I think static retargetting would probably be ideal, but I think it’s probably easier to do dynamic recompilation - it may also be more amenable to some of the tricks certain programs play.
[quote]When I look at the profiler output, CPU emulation is quite expensive (although it’s only ~5-15% on my PC, but that’s a quite fast PC), but video emulation is even more expensive in many games… I guess because of lots of array access.
[/quote]
Hmm… It sounds like you’re not offloading any work onto the graphics processor. I guess that makes sense for the earlier programs, but I bet that the burden shifts in later systems/programs where you can discern graphics primitives calls.
[quote]When I would know how to do ‘dynarec’ or static binary translation, I could have a go at emulating an 68000.
[/quote]
You mean cause it would run too slow otherwise?
God bless,
-Toby Reyelts