home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17539 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  3.0 KB

  1. Xref: sparky comp.sys.amiga.programmer:17539 comp.sys.amiga.hardware:21780
  2. Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.hardware
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!fauern!rz.uni-passau.de!forwiss.uni-passau.de!meisl
  4. From: meisl@forwiss.uni-passau.de (Wolfgang Meisl)
  5. Subject: Re: CISC and RISC
  6. Message-ID: <1992Dec18.180013.27677@tom.rz.uni-passau.de>
  7. Sender: news@tom.rz.uni-passau.de (News-Operator)
  8. Organization: University of Passau, Germany
  9. References: <70436@cup.portal.com> <amipb.04wr@amipb.gna.org> <37844@cbmvax.commodore.com> <AHANSFOR.92Dec18071830@bigwpi.wpi.edu> <1gsqk1INN327@crcnis1.unl.edu>
  10. Date: Fri, 18 Dec 1992 18:00:13 GMT
  11. Lines: 64
  12.  
  13. In article <1gsqk1INN327@crcnis1.unl.edu>, tbills@cse.unl.edu (Trent Bills) writes:
  14. |> In article <AHANSFOR.92Dec18071830@bigwpi.wpi.edu>, ahansfor@bigwpi.wpi.edu (Andrew L. Hansford) writes:
  15. |> |> >>>>> On 18 Dec 92 00:56:48 GMT, idr@rigel.cs.pdx.edu (Ian D Romanick) said:
  16. |> |> 
  17. |> |> idr> Article-I.D.: pdxgate.6587
  18. |> |> 
  19. |> |> idr> In article <Bz8FD1.Dxt@ns1.nodak.edu> dewald@plains.NoDak.edu
  20. |> |> idr> (Eric Dewald) writes:
  21. |> |> >What are the advantages of CISC and RISC?
  22. |> |> 
  23. |> |> idr> Well, since RISC is a more basic instruction set, it is MUCH
  24. |> |> idr> easier for a compiler to generate good code for it.
  25. |> |> 
  26. |> |> You are joking right?  The compiler and even assemblers are the
  27. |> |> elements that got much more complicated.  Dependency avoidance, delay
  28. |> |> slot scheduling...easy?
  29. |> |> 
  30. |> 
  31. |> No.  He is not joking.  Have you ever written a compiler?  Compiler
  32. |> problems such as register allocation are MUCH more difficult that
  33. |> avoiding data hazzards and filling delay slots.
  34.  
  35. Then, why produce many compilers on SPARC processsors only intermediate
  36. c-code? It may be simplier to write a compiler on RISC architecture,
  37. but it is really hard to write an efficient one.
  38.  
  39.  
  40. |> |> idr> It also makes it so
  41. |> |> idr> that the instructions themselves are smaller and can be fetched
  42. |> |> idr> and decoded quicker.
  43. |> |> 
  44. |> |> The instructions are generally the same format for all instructions
  45. |> |> (or the processor supports very few formats) that makes them easier to
  46. |> |> decode.  THEY ARE NOT SMALLER.
  47. |> |> 
  48. |> |> -- Andrew Hansford
  49. |> |>    ahansfor@wpi.wpi.edu
  50. |> 
  51. |> In many cases, RISC instructions are smaller than CISC instructions.
  52. |> Consider an add instruction in a CISC chip.  The source operands could
  53. |> both be some place in memory.  Depending on the addressing mode used,
  54. |> both source operands could take up 4 bytes or more each.  RISC
  55. |> instructions are usually a fixed size (32 or 64 bits) which is obviously
  56. |> smaller than the above CISC example.
  57. |> 
  58. |>  - Trent Bills
  59.  
  60. Indeed, there is not so much difference in total code size. But RISC
  61. programs are bigger:
  62.  
  63. GNU Emacs  18.57.1 on different platforms:
  64.  
  65. DEC,  MIPS          983040 Bytes    (RISC)
  66. Sun4, SPARC         937984 Bytes    (RISC)
  67.  
  68. Sun3, 68020         860160 Bytes    (CISC)
  69. DEC,  Vax           720896 Bytes    (complex CISC)
  70.  
  71. - Wolfgang Meisl
  72.  
  73.  
  74.  
  75.  
  76.  
  77.