home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4899 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: soap.news.pipex.net!pipex!usenet
  2. From: m.hendry@dial.pipex.com (Mathew Hendry)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: 680X0 -> PPC translator?
  5. Date: Wed, 6 Mar 96 13:53:34
  6. Organization: Private node.
  7. Distribution: world
  8. Message-ID: <19960306.4307B0.C9EB@an132.du.pipex.com>
  9. 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>
  10. NNTP-Posting-Host: an132.du.pipex.com
  11. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  12.  
  13. Avi Lev (avil@sapiens.com) wrote:
  14. : Hi guys, you can argue whether it's possible or not as much as 
  15. : you want i claim IT'S DAMN POSSIBLE!!! it's just that no one is 
  16. : brave enough to take it on him/her-self to do it cuz the job is 
  17. : just too hard. assuming you have a completely compatible OS 
  18. : written in native PPC code,
  19.  
  20. It wouldn't be completely compatible, obviously.
  21.  
  22. :                             translation shoudn't be more 
  23. : difficult than translating mov cx,3 (in x86) to move a2,3 (in 
  24. : 680x0) so what's the problem?! finding out which parts are code 
  25. : and which ones are data is very easy for someone who's familiar 
  26. : with the executable file format of the Amiga, there're 
  27. : DATA_HUNK's and there're CODE_HUNK's isn't that enough to 
  28. : recognise what is what, just translate the CODE_HUNK's and 
  29. : you're done.
  30.  
  31. As has already been discussed, code is often misplaced in data hunks and vice
  32. versa. How do you intend to handle that?
  33.  
  34. :              the main concern is efficiency just as it is with 
  35. : normal source compilers, however PPC's are faster anyway so even 
  36. : the most inefficient translator will do the job quite nice in 
  37. : fact. self-modifying code isn't dead by the way it's very much 
  38. : alive'n kickin',
  39.  
  40. Of course it isn't. If the translator comes across an instruction which
  41. overwrites an already existing instruction with DATA, the resulting new
  42. instruction will be completely wrong, since it will be 680x0 code rather than
  43. PPC code...
  44.  
  45. -- Mat.
  46.