From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:57507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJ18M-0001iX-N6 for qemu-devel@nongnu.org; Sun, 08 May 2011 06:22:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJ18L-00078i-PF for qemu-devel@nongnu.org; Sun, 08 May 2011 06:22:42 -0400 Received: from mail-qy0-f173.google.com ([209.85.216.173]:40202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJ18L-00078d-L2 for qemu-devel@nongnu.org; Sun, 08 May 2011 06:22:41 -0400 Received: by qyk36 with SMTP id 36so478742qyk.4 for ; Sun, 08 May 2011 03:22:41 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <19735.38079.qm@web38403.mail.mud.yahoo.com> References: <19735.38079.qm@web38403.mail.mud.yahoo.com> From: Blue Swirl Date: Sun, 8 May 2011 13:22:21 +0300 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Binary translation (of code) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Tarmo Pikaro Cc: qemu-devel@nongnu.org On Sat, May 7, 2011 at 2:26 PM, Tarmo Pikaro wrote: > Hi ! > > I've analyzed quite a lot of emulators source code, including qemu as wel= l. > > But I somehow would like to completely get rid of emulators, and simply c= onvert > 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=C2=A0binary trans= lation ? > > I'm searching for enthusiasts /=C2=A0gurus who=C2=A0want /=C2=A0could be = involved in this > excersise as well. > > My intrest also goes beoynd one=C2=A0windows - linux -=C2=A0I would like = to > binary=C2=A0translate=C2=A0also > older=C2=A0console games - like=C2=A0nintendo/super nintendo rom (directl= y to=C2=A0.exe). In general, this is not possible. Consider for example self-modifying or otherwise dynamically created code, or just code that examines itself. In some specific trivial cases it could work, and QEMU could be made to abort if translation would be needed.