home *** CD-ROM | disk | FTP | other *** search
- Path: aargh.incubus.sub.org!marc
- From: marc@aargh.incubus.sub.org (Marc 'Nepomuk' Heuler)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: 680X0 -> PPC translator?
- Message-ID: <Z4ymy*Vya@aargh.incubus.sub.org>
- Date: Sat, 06 Apr 1996 12:14:53 CET
- Reply-To: marc@aargh.incubus.sub.org
- References: <31499F8E.26A9@netvision.net.il> <volker.0fw1@vb.franken.de> <315800D7.1854@sapiens.com>
- <volker.0g32@vb.franken.de> <315C198B.49C2@netvision.net.il> <volker.0g5w@vb.franken.de>
- <1996Apr2.230841.8275@scala.scala.com>
- Organization: Data Design
- X-Newsreader: Arn V1.03a
-
- In article <1996Apr2.230841.8275@scala.scala.com>, Dave Haynie writes:
-
- > Sure you can. The practical binary translators that exist today (and
- > there are some, which work very well) do this very simply. They work
- > in conjunction with an emulator, and the emulator keeps track of what
- > runs and what doesn't. Anything that's executed is code, and such a
- > chunk can itself be translated based on static analysis. Anything that
- > doesn't run might not be code. So you don't translate it; if it's
- > data, you're safe. If it's code, and it never runs, there's no point
- > in translating it. If it does run later, you translate it later.
-
- What happens if a program is buggy and seldomly executes an important piece
- of data as code? After this happened _once_ the data gets translated as
- code, then this false code misbehaves/crashes (equivalent to the native
- system). If the translator already stored the new translation info on
- disk, future attempts to start the program will fail, because now vital
- data has been translated as code! Things that used to work in the new
- environment suddenly stop working. What mechanism prevents this scenario
- from happening?
-