View Full Version : Something I've been woundering
ChankastRules
December 17th, 2004, 11:52
Would it be possible to recompile an entire game, and save it as a recompiled version, this way remove the need for dynamic recompiling? ( I guess this is what JAVA does but each time on startup instead )
Neo-Zacar
December 17th, 2004, 12:01
i was wondering something like this some months ago but forgot to post it :P
what does recompiling do anyway..?
ChankastRules
December 17th, 2004, 12:07
I guess it is easier to describe it from JAVA, you have a file with code, and it should be possible to run it on different hardware, operating systems etc etc ( this is not possible if it's compiled into machine specific executeable ), so what JAVA does is to take the code and compile it to work for that version of operating system hardware etc, ( which make sure it runs on the hardware availiable ) I hope that explained it. I'm not all that good at describing. Anyway I guess it's now somewhat off topic from my original post :S
In the PS2 case this is ofcourse much harder because it has to take the PS2 machine code and convert it into PC compatible machine code.
Kane
December 17th, 2004, 14:46
Java already has the app in a precompiled form. It's quite different to a complete recompile.
I think that wouldn't be possible tho. From what I understand, you'd need the game sources.
ChankastRules
December 17th, 2004, 17:56
yes, I know this is why I wrote that it's much harder for PS2 :O, It's not impossible to recompile from machine code though, it's just much harder. ( For simple machine code I can do this )
FLaRe85
December 17th, 2004, 18:18
I guess it is easier to describe it from JAVA, you have a file with code, and it should be possible to run it on different hardware, operating systems etc etc ( this is not possible if it's compiled into machine specific executeable ), so what JAVA does is to take the code and compile it to work for that version of operating system hardware etc, ( which make sure it runs on the hardware availiable ) I hope that explained it. I'm not all that good at describing. Anyway I guess it's now somewhat off topic from my original post :S
In the PS2 case this is ofcourse much harder because it has to take the PS2 machine code and convert it into PC compatible machine code.
Actually, Java doesn't ever get recompiled from its bytecode form. It's interpreted by the virtual machine running on that platform, which is what's been compiled for the platform.
Maybe you're thinking of .NET which does do JIT compiling.
ChankastRules
December 17th, 2004, 21:56
This is what old Java did Flare ( but to avoid anymore discussion let's say what I wrote above goes for .NET instead this is very much beside the point :O), does anyone have a reply to the question I asked above, I should never have mentioned Java in the first place had I known this is what the discussion would turn into :(
Liquid_Snake
December 19th, 2004, 00:53
Isn't it possible to convert all possible commands from PS2 to PC code BEFORE running the game (thats how I understand "recompile") I think it would emulation much faster (but I don't even try to imagine time you'll need to recompile)
P.S. JAVA? oO
ChankastRules
December 19th, 2004, 03:17
This was exactly my question Liquid :) I guess I'm not the only one woundering.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.