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

  1. Path: vb.franken.de!volker
  2. From: volker@vb.franken.de (Volker Barthelmann)
  3. Subject: Re: 680X0 -> PPC translator?
  4. Newsgroups: comp.sys.amiga.programmer
  5. References: <1190.6631T892T581@und.ida.liu.se> <Ronald.07ii@noblehouse.xs4all.nl> <31355992.58CD@afrodite.kih.no> <313D36C8.72B7@sapiens.com>
  6. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  7. Message-ID: <volker.0fq1@vb.franken.de>
  8. Date: 6 Mar 96 21:54:55 MET
  9. Organization: home
  10.  
  11. Avi Lev (avil@sapiens.com) wrote:
  12. :
  13. : Hi guys, you can argue whether it's possible or not as much as
  14. : you want i claim IT'S DAMN POSSIBLE!!! it's just that no one is
  15.  
  16. It is possible in certain simple cases, but generally not.
  17.  
  18. : [..] translation shoudn't be more
  19. : difficult than translating mov cx,3 (in x86) to move a2,3 (in
  20. : 680x0) so what's the problem?!
  21.  
  22. Just a little example:
  23.  
  24.     pea     4
  25.     jsr     _malloc
  26.     addq.w  #4,a7
  27.     move.l  d0,a0
  28.     ...
  29.     move.l  label,(a0)
  30.     ...
  31.  
  32. label
  33.     moveq   #100,d0
  34.     rts
  35.  
  36. How are You going to translate this into PPC-Code (and notie that PPC
  37. instructions are at least 32 bits long)?
  38.  
  39. Volker
  40.  
  41.