MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

Anonymous
Unregistered
Re: It's called "static recompiler"
03/17/11 10:04 AM


> I need your help with stuff related to MAME:
>
> - Will you help me find the game in MAME that would be the least problematic for
> this?

To be general purpose you need to find a game that would be most problematic, if it can't handle the worst case then it's not worth doing.

> - Will you help me locate necessary files, functions and variables so I know where to
> start?

To be able to do what you're trying to do then you should be able to do that yourself much quicker than asking questions to someone who is probably in another time zone.

> I'll tell you about it after you answer this question: How much of the code DRC
> handles currently in MAME - is it just for some games and ONLY FOR SOME PARTS of the
> code, and could it be implemented so that WHOLE game (any game) can be cached with
> DRC?

The DRC runs all the code, it never drops back to an interpreter.

> That's if your assumptions are correct and if you ignore all the other benefits I
> mentioned, but what if I manage to get 25 times speed increase anyway, would you be
> interested then?

As long as your approach works off the original roms, can start running the game as quickly as mame already does and still achieves a 25 times speed increase then yes that would be interesting.

You can't legally distribute a machine translation of a copyright file, so you have to be able to work off the original roms (because a real user can dump their own roms). You'll need to rebuild your translated code when a bug is fixed in the translator.

You need to be able to cope with indirect jumps. Jump tables or pointers might be calculated at run time, so they might not be available when you need them. Even if the jump table is available, you might not be able to work out what size they are.

static recompilation is very useful for porting games from one platform to another, you can special case bits by hand to make it work & even change the resulting source code before compiling it. MAME has to be able to cope with running any software, if you write software for galaxian hardware then it should run in MAME by just naming the roms correctly.







Entire thread
Subject Posted by Posted on
* Emulator: Interpreter vs. Compiler? safreen 03/14/11 01:17 AM
. * Re: Emulator: Interpreter vs. Compiler? R. Belmont  03/14/11 08:03 PM
. * Re: Emulator: Interpreter vs. Compiler? safreen  03/15/11 07:24 AM
. * Re: Emulator: Interpreter vs. Compiler? R. Belmont  03/15/11 03:02 PM
. * Re: Emulator: Interpreter vs. Compiler? safreen  03/15/11 06:14 PM
. * Re: Emulator: Interpreter vs. Compiler? R. Belmont  03/15/11 09:37 PM
. * Re: Emulator: Interpreter vs. Compiler? safreen  03/16/11 05:56 AM
. * Re: Emulator: Interpreter vs. Compiler? safreen  03/16/11 05:37 AM
. * Re: Emulator: Interpreter vs. Compiler? drewcifer  03/16/11 07:25 PM
. * Re: Emulator: Interpreter vs. Compiler? H@P  03/17/11 03:59 PM
. * Re: Emulator: Interpreter vs. Compiler? StilettoAdministrator  03/16/11 07:53 PM
. * Re: Emulator: Interpreter vs. Compiler? Bart T.  03/16/11 04:14 AM
. * Re: Emulator: Interpreter vs. Compiler? R. Belmont  03/16/11 05:58 PM
. * Re: Emulator: Interpreter vs. Compiler? Bart T.  03/16/11 09:34 PM
. * Re: Emulator: Interpreter vs. Compiler? etabeta  03/15/11 10:18 AM
. * Re: Emulator: Interpreter vs. Compiler? safreen  03/15/11 05:41 PM
. * Re: Emulator: Interpreter vs. Compiler? Bart T.  03/15/11 09:16 PM
. * Re: Emulator: Interpreter vs. Compiler? Matty_  03/14/11 01:35 AM
. * Re: Emulator: Interpreter vs. Compiler? safreen  03/14/11 02:03 AM
. * Re: Emulator: Interpreter vs. Compiler? BIOS-D  03/14/11 04:50 AM
. * Re: Emulator: Interpreter vs. Compiler? R. Belmont  03/14/11 03:17 PM
. * Re: Emulator: Interpreter vs. Compiler? safreen  03/15/11 07:01 AM
. * Re: Emulator: Interpreter vs. Compiler? Bart T.  03/15/11 09:50 AM
. * Re: Emulator: Interpreter vs. Compiler? safreen  03/15/11 04:23 PM
. * Re: Emulator: Interpreter vs. Compiler? Bart T.  03/15/11 09:03 PM
. * It's called "static recompiler" safreen  03/14/11 08:12 AM
. * Re: It's called "static recompiler" Bart T.  03/14/11 08:50 AM
. * Re: It's called "static recompiler" safreen  03/15/11 06:32 AM
. * Re: It's called "static recompiler" R. Belmont  03/15/11 02:59 PM
. * Re: It's called "static recompiler" safreen  03/15/11 05:47 PM
. * Re: It's called "static recompiler" Bart T.  03/15/11 09:10 PM
. * Re: It's called "static recompiler" Bart T.  03/15/11 10:09 AM
. * Re: It's called "static recompiler" safreen  03/15/11 04:34 PM
. * Re: It's called "static recompiler" R. Belmont  03/15/11 09:41 PM
. * Re: It's called "static recompiler" krick  03/18/11 05:01 AM
. * Re: It's called "static recompiler" safreen  03/16/11 05:51 AM
. * Re: It's called "static recompiler" Bart T.  03/16/11 07:48 AM
. * Re: It's called "static recompiler" Bart T.  03/15/11 09:08 PM
. * Re: It's called "static recompiler" safreen  03/16/11 05:20 AM
. * Re: It's called "static recompiler" Bart T.  03/16/11 07:51 AM
. * Re: It's called "static recompiler" safreen  03/16/11 09:23 AM
. * Re: It's called "static recompiler" R. Belmont  03/16/11 06:08 PM
. * Re: It's called "static recompiler" safreen  03/16/11 09:00 PM
. * Re: It's called "static recompiler" Anonymous  03/17/11 10:04 AM
. * Re: It's called "static recompiler" StilettoAdministrator  03/16/11 06:56 PM
. * Re: It's called "static recompiler" keshbach1  03/16/11 07:52 PM
. * Re: It's called "static recompiler" BIOS-D  03/16/11 07:04 PM
. * Re: It's called "static recompiler" Bart T.  03/16/11 09:31 PM
. * Re: It's called "static recompiler" R. Belmont  03/16/11 09:40 PM
. * Re: It's called "static recompiler" twistyAdministrator  03/16/11 10:48 PM
. * Took ya all long enough.... mogli  03/17/11 04:18 AM
. * Re: Took ya all long enough.... R. Belmont  03/17/11 02:37 PM
. * Re: Took ya all long enough.... mogli  03/18/11 04:53 AM
. * Re: It's called "static recompiler" Bart T.  03/17/11 12:03 AM
. * Re: It's called "static recompiler" drewcifer  03/15/11 09:24 PM
. * Re: It's called "static recompiler" BIOS-D  03/15/11 05:00 PM
. * Re: It's called "static recompiler" Waremonger  03/16/11 04:58 AM
. * Re: It's called "static recompiler" krick  03/15/11 07:15 AM
. * Re: It's called "static recompiler" R. Belmont  03/15/11 02:55 PM
. * Re: It's called "static recompiler" AWJ  03/15/11 12:15 PM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 357 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 6258