From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 10387 invoked from network); 22 Aug 1998 13:48:18 -0000 Received: from post-12.mail.demon.net (HELO post.mail.demon.net) (194.217.242.41) by mail2.redhat.com with SMTP; 22 Aug 1998 13:48:18 -0000 Received: from [194.222.210.232] (helo=tardis.home.dave) by post.mail.demon.net with smtp (Exim 2.02 #1) id 0zAE1U-0007WW-00; Sat, 22 Aug 1998 13:48:04 +0000 Date: Sat, 22 Aug 1998 14:47:57 +0100 (BST) From: Dave Gilbert X-Sender: gilbertd@tardis.home.dave To: Street Dreams cc: axp-list@redhat.com Subject: Re: Fishing for emulator / translator ideas... In-Reply-To: <199808212215.SAA10355@mail.iserv.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 20 Aug 1998, Street Dreams wrote: > I realize that this is a daunting task, but I think the challenge is worth > the task. Ideally, this type of program wouldn't be needed, but I'm seeing > more and more binaries without available source. I probably couln't work > extensively on this program. I don't know enough about Linux internals, > and I'd need to have tall stacks of data sheets. Both concievably require > money for books too. I've done some assembly - less than 8k size in 8086 > code, so I may not know the depth of the pile of do-do that this project > may involve. Writing emulators is a challenging and fun task; and since your talking about emulators which only have to emulate user programs (rather than emulate the kernel) it shouldn't actually be that hard. Translators are more tricky - especially if you want to make them portable; although I'm not aware of the name or where to find it, I believe there is a portable backend for translators. I know of research projects writing full anything-anything translators - but I doubt they'd let their code out since their trying to patent it. I think its more than possible for you to write an emulator for anyone of x86/SPARC/Alpha or PPC. You'll need to understand the processor COMPLETELY for it to work; so get the datasheets, get the smallest binary you can find to start with, get the pieces of released source for em86 (that should give you some pointers on how to set up the emulation to allow it to call Linux system calls). I've written emulators for a 6502 machine and an ARM based machine (both of which I understood before writing the emulators) and I found them great fun. When I've cleared all the other things out to do (like bug fix the ARM based one etc.) I wouldn't mind having a go at another emulator or two. Dave -------------------------------------------------------------------- / Dr. David Alan Gilbert | Running Linux on Alpha & ARM \ \ gro.gilbert @ treblig.org | ------- Happy in hex ------- / \____________________________|___ http://www.treblig.demon.co.uk __/