home *** CD-ROM | disk | FTP | other *** search
- Path: soap.news.pipex.net!pipex!usenet
- From: m.hendry@dial.pipex.com (Mathew Hendry)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: 680X0 -> PPC translator?
- Date: Wed, 6 Mar 96 13:53:34
- Organization: Private node.
- Distribution: world
- Message-ID: <19960306.4307B0.C9EB@an132.du.pipex.com>
- References: <4fstt2$old@newsstand.cit.cornell.edu> <PETERM.96Feb19135541@tui.maths.irl.cri.nz> <4glch6$rle@ra.nrl.navy.mil> <1190.6631T892T581@und.ida.liu.se> <Ronald.07ii@noblehouse.xs4all.nl> <31355992.58CD@afrodite.kih.no> <313D36C8.72B7@sapiens.com>
- NNTP-Posting-Host: an132.du.pipex.com
- X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
-
- Avi Lev (avil@sapiens.com) wrote:
- : Hi guys, you can argue whether it's possible or not as much as
- : you want i claim IT'S DAMN POSSIBLE!!! it's just that no one is
- : brave enough to take it on him/her-self to do it cuz the job is
- : just too hard. assuming you have a completely compatible OS
- : written in native PPC code,
-
- It wouldn't be completely compatible, obviously.
-
- : translation shoudn't be more
- : difficult than translating mov cx,3 (in x86) to move a2,3 (in
- : 680x0) so what's the problem?! finding out which parts are code
- : and which ones are data is very easy for someone who's familiar
- : with the executable file format of the Amiga, there're
- : DATA_HUNK's and there're CODE_HUNK's isn't that enough to
- : recognise what is what, just translate the CODE_HUNK's and
- : you're done.
-
- As has already been discussed, code is often misplaced in data hunks and vice
- versa. How do you intend to handle that?
-
- : the main concern is efficiency just as it is with
- : normal source compilers, however PPC's are faster anyway so even
- : the most inefficient translator will do the job quite nice in
- : fact. self-modifying code isn't dead by the way it's very much
- : alive'n kickin',
-
- Of course it isn't. If the translator comes across an instruction which
- overwrites an already existing instruction with DATA, the resulting new
- instruction will be completely wrong, since it will be 680x0 code rather than
- PPC code...
-
- -- Mat.
-