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

  1. Path: newsfeed.internetmci.com!xmission!xmission!not-for-mail
  2. From: butlerm@xmission.xmission.com (Mark David Butler)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: 680X0 -> PPC translator?
  5. Date: 12 Mar 1996 21:33:55 -0700
  6. Organization: XMission Internet (801 539 0900)
  7. Message-ID: <4i5j7j$gjv@xmission.xmission.com>
  8. References: <19960307.41C900.103A8@an168.du.pipex.com> <Dny169.BJH@cix.compulink.co.uk> <19960308.41E5A8.1098C@an157.du.pipex.com> <3145556F.2839@sapiens.com>
  9. NNTP-Posting-Host: xmission.xmission.com
  10.  
  11. Excuse me, but no rational dynamic translator in existence would
  12. attempt to write the translation on top of the original machine code
  13. in memory.  It would allocate new memory for the target code on the fly 
  14. instead.
  15.  
  16. Primary advantages:
  17.  
  18. Extremely high performance (4-5 times faster than emulation)
  19. Translation can run in the background while emulation runs in the foreground.
  20. No code / data identification issue as with static translators.
  21. Can be designed to execute self modifying code.
  22. Programs do not have to be translated manually ahead of time.
  23.  
  24. Primary disadvantages:
  25.  
  26. At least doubles code space requirement.
  27.  
  28.  
  29. In article <3145556F.2839@sapiens.com>, Avi Lev  <avil@sapiens.com> wrote:
  30. >
  31. >let me give you a simple reason why you're wrong and why dynamic translation is NOT the way to 
  32. >go, well you're assuming that the translated PPC code will be of the same size as the original 
  33. >code, well that is simply not necessarally true and what do you do then??? you can't change the 
  34. >segment size of the hunk in memory during run-time and even if you could that would have a 
  35. >great performance impact cuz you would have to rewrite all the code in the newly allocated 
  36. >segment each time you need more space, and as far as i know PPC instructions do require more 
  37. >space than 680x0.
  38. .....
  39. -- 
  40. Mark David Butler         ( butlerm @ xmission.com )
  41.  
  42.