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

  1. Path: crux4.cit.cornell.edu!fkrj
  2. From: fkrj@crux4.cit.cornell.edu (Benjamin Kenobi)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: 680X0 -> PPC translator?
  5. Date: 27 Feb 1996 17:46:07 GMT
  6. Organization: Cornell University
  7. Sender: do12@cornell.edu (Verified)
  8. Message-ID: <4gvg0v$j2j@newsstand.cit.cornell.edu>
  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>
  10. NNTP-Posting-Host: crux4.cit.cornell.edu
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Mans Engman (c92manen@und.ida.liu.se) wrote:
  14.  
  15. : fkrj@crux4.cit.cornell.edu (Benjamin Kenobi) writes:
  16. : >I'm just wondering, is there any good reason AT can't write a program
  17. : >which will tranlsate binary executables from 680X0 -> PPC, doing
  18. : >optimizations along the way?  That way we could translate most of our old
  19. : >software and it would run efficiently.  Why didn't Apple do this with the
  20. : >PowerMacs?
  21.  
  22. : It is not possible, in the general case, to do completely static code-
  23. : translation. This means that on some stage there always has to be some kind of
  24. : interpretation involved, no matter how complex you make the translator.
  25. : For instance, think about how to handle this simple question:
  26. : For a given program, what is code and what is data?
  27.  
  28. On the amiga, don't we have separate "hunks" for code and data?
  29.  
  30. : Ok, so you make a little code reachability test to find out...but then, how do
  31. : you make it handle indirect jumps (library calls!)? Hmm...just emulate the
  32. : code perhaps? :) How would you handle on-the-fly code creating/modifying? Ok,
  33.  
  34. Ok.. You got me there.
  35.  
  36. : so noone uses self-modifying code anymore, but what if some code is
  37. : compressed, for instance? You can't solve these problems without having rigid
  38. : rules which completely separate code from data. And that would break quite a
  39. : few programs.
  40.  
  41. Ok, but even if we could translate say 30-40% of the programs into something
  42. usable, wouldn't that still be worthwhile?
  43.  
  44. Dan
  45.