home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / arch / 11752 < prev    next >
Encoding:
Internet Message Format  |  1992-12-20  |  1.7 KB

  1. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!male.EBay.Sun.COM!exodus.Eng.Sun.COM!not-and!nand
  2. From: nand@not-and.Eng.Sun.COM (Nand Mulchandani)
  3. Newsgroups: comp.arch
  4. Subject: Re: RISC assemblers question
  5. Date: 18 Dec 1992 03:26:09 GMT
  6. Organization: Sun Microsystems, Inc.
  7. Lines: 34
  8. Distribution: world
  9. Message-ID: <lj2h6hINNikj@exodus.Eng.Sun.COM>
  10. References: <1992Dec17.173930.3235@meiko.com>
  11. Reply-To: nand@not-and.Eng.Sun.COM
  12. NNTP-Posting-Host: not-and
  13.  
  14. masticol@cadenza.rutgers.edu (Steve Masticola) writes:
  15. : Hi,
  16. : I've met a couple of people who have attempted to write assemblers for
  17. : RISC machines, who say that it's a difficult job. Can someone give me
  18. : an inkling as to why?
  19. : I'm not saying that it isn't; the reason just isn't obvious to me
  20. : right now.
  21. : Thanks,
  22. : - Steve (masticol@cs.rutgers.edu).
  23.  
  24. A couple of things make it a *little* harder :
  25.  
  26. 1) Branches with delay slots (you have to be able to represent them and
  27.    deal with them).
  28. 2) In general, chip workarounds are done in the assembler, and this code
  29.    is just yuckier to deal with
  30. 3) branches have limited scope (on SPARC, you get only 22 bits in the branch
  31.    instruction). It is reasonable to leave a check in the assembler to detect
  32.    branches to targets that are larger than the displacement will allow.
  33. 4) Code to check architectural correctness (try doing something illegal
  34.    with the SPARC assembler - if it sqawks, then someone had to write the code 
  35.    to do the check). This is very important, because the machine will not always
  36.    execute "arbitrary assembly language". 
  37.  
  38. There may be others, these are the only ones that come to mind right now. 
  39.  
  40. Cheers.
  41.  
  42. - Nand
  43.  
  44.  
  45.