qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] Binary translation (of code)
@ 2011-05-10 18:13 Tarmo Pikaro
  2011-05-10 19:46 ` Richard Henderson
  2011-05-10 20:02 ` Lluís
  0 siblings, 2 replies; 11+ messages in thread
From: Tarmo Pikaro @ 2011-05-10 18:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: Llu?s

Message: 3
Date: Sun, 08 May 2011 21:41:15 +0200
From: Llu?s <xscript@gmx.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Binary translation (of code)
Message-ID: <87ei49ugis.fsf@ginnungagap.bsc.es>
Content-Type: text/plain; charset=utf-8

Tarmo Pikaro writes:

> Hi !
>> > I think self-modifying?code is kinda rare case - it's made typically for
>> > protection againt?hackers , and?typically on pc side. Nintendo?roms 
probably
>> > don't use this kind of
>> > protection.
>> 
>> It doesn't have to be protection, for example GCC generates
>> trampolines to stack when using nested functions.

> Ok, so apparently we will have some challenges on the way.

> I guess some sort of mutation - qemu + recompiler could be done as well...

> It would be much easier to ship an executable containing both the guest
> application and qemu, so that executing it starts qemu with a
> pre-defined configuration and runs the guest binary.
 
- Binary recompilation would allow faster execution than emulated code
 
- qemu constantly changes (based on amount of patches provided in this
mail list) - in order to keep image+qemu working - simplest way is to convert 
into
executable. Btw - qemu could be used as a bootstrap to image as well.
:-)
 
- And finally modular "emulation" - it would be possible to recompile individual
.dll to another os.
 
Side effects would be:
 
- More difficult to debug - since mapping to original binary image should be 
somehow
maintained - if register dump helps anyhow the developer.
 --
Have a nice day!
Tarmo.

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Qemu-devel] Binary translation (of code)
@ 2011-05-07 11:26 Tarmo Pikaro
  2011-05-08  8:40 ` Mulyadi Santosa
  2011-05-08 10:22 ` Blue Swirl
  0 siblings, 2 replies; 11+ messages in thread
From: Tarmo Pikaro @ 2011-05-07 11:26 UTC (permalink / raw)
  To: qemu-devel

Hi !

I've analyzed quite a lot of emulators source code, including qemu as well.

But I somehow would like to completely get rid of emulators, and simply convert
application from one cpu/board to another cpu/board.

On wiki pages this is called "binary translation".

- Do you know some open source code projects related to binary translation ?

I'm searching for enthusiasts / gurus who want / could be involved in this 
excersise as well.

My intrest also goes beoynd one windows - linux - I would like to 
binary translate also
older console games - like nintendo/super nintendo rom (directly to .exe).

I was thinking about starting from qemu and cracking it into correct direction - 

has anyone ever tried to:

- put qemu in visual studio (or other ide where it can be debugged)
- cross compiled qemu with cygwin ?
 --
Have a nice day!
Tarmo.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-05-10 20:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-10 18:13 [Qemu-devel] Binary translation (of code) Tarmo Pikaro
2011-05-10 19:46 ` Richard Henderson
2011-05-10 20:02 ` Lluís
  -- strict thread matches above, loose matches on Subject: below --
2011-05-07 11:26 Tarmo Pikaro
2011-05-08  8:40 ` Mulyadi Santosa
2011-05-08 10:22 ` Blue Swirl
2011-05-08 13:05   ` Tarmo Pikaro
2011-05-08 13:46     ` Blue Swirl
2011-05-08 13:54       ` Stefan Hajnoczi
2011-05-08 19:02       ` Tarmo Pikaro
2011-05-08 19:41         ` Lluís

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).