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

  1. Xref: sparky comp.sys.amiga.programmer:17508 comp.sys.amiga.hardware:21752
  2. Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.hardware
  3. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!nella8.cc.monash.edu.au!vac133m
  4. From: vac133m@nella8.cc.monash.edu.au (Richard Jones)
  5. Subject: Re: CISC and RISC
  6. Message-ID: <vac133m.724654821@nella8.cc.monash.edu.au>
  7. Sender: news@monu6.cc.monash.edu.au (Usenet system)
  8. Organization: Monash University, Melb., Australia.
  9. References: <amipb.04wr@amipb.gna.org> <37844@cbmvax.commodore.com> <Bz8FD1.Dxt@ns1.nodak.edu> <BzByvD.FA9@news.cs.andrews.edu>
  10. Date: Fri, 18 Dec 1992 05:00:21 GMT
  11. Lines: 91
  12.  
  13. adap@edmund.cs.andrews.edu (Edsel Adap) writes:
  14. >In article <Bz8FD1.Dxt@ns1.nodak.edu> dewald@plains.NoDak.edu (Eric Dewald) writes:
  15. >>Why should computer makers go from CISC to RISC?
  16. >RISC - Reduced Instruction Set Computer
  17. >CISC - Complex Instruction Set Computer
  18. >The reason for many companies going RISC is because of its great speed
  19. >advantages over CISC.  This is accomplished in many ways.  In CISC, (ie a
  20. >Motorolla 68000) the instruction set is what is called a macro instruction.
  21. >These macro instruction are a collection of micro instructions that do what
  22. >the macro instructions is supposed to do.  In RISC instead of a macro
  23. >instruction, there is a minimal amount of instructions, and a minimal amount
  24. >of addressing modes.  More efficiency is obtained by working with the micro
  25. >code because there are things that the macro instructions do in order to
  26. >generalize the instructions for various purposes.  Micro code is to Macro
  27. >code as assembler is to a high level language.  The Micro code provides more
  28. >efficiency.
  29.   Apart from the terminology.... what you just said is basically true, but the
  30. following is .. erm... a little unjust to the CISC processors...
  31.  
  32. >Another Advantage of RISC is the abundance of Register memory.  CISC
  33. >commonly contains few registers (The 68000 has 8 data registers and 8
  34. >address registers) while RISC processors contain anywhere from 32 registers
  35. >to a few hundred registers (It is not uncommon to have RISC processors that
  36. >have 512 registers).  Since Register memory is about 10 times faster than
  37. >main memory, most of the instructions are register to register, therefore
  38. >increasing efficiency.
  39.   The number of registers is basically up to the chip designer. While it isn't
  40. uncommon to have many registers in a RISC chip, the same goes for most newer
  41. CISC chips. Take, for example, the 80196KC et al.  (ok, granted it's a
  42. microcontroller .. but who cares?). One of the reasons you don't get huge
  43. register files in CISC chips these days is that most are enhancements on old
  44. CISC chips that are 10+ years old.. back when the register file was a
  45. ludicrous suggestion for a cheap processor. RISC is a fairly new technology,
  46. and hence most RISC families started with register files.
  47.   What I'm basically saying is that the RISC/CISC _architecture_ has nothing
  48. to do with the size of the register file.
  49.  
  50. >In RISC chips the data path cycle time is minimized by logically reducing
  51. >the number of steps it takes for an instruction to be executed and by
  52. >physically shortening the distances between components in the chip (the
  53. >large number of registers play a role in this).
  54.   Bzzzt. Most speed-ups these days come from the material used. The newer
  55. manufacturing technologies are major factors in speed-ups of current chips.
  56.   Of course.. this only applies to the cycle time of _one_ instruction (and
  57. in the i860 for example, it's 20ns). If the processor executes microcode, then
  58. this will slow the processor down. Pipelining and parallel design (bit-parallel)
  59. is being used to significantly reduce the microcode in current CISC processors.
  60. Oh, I notice you mention this below..
  61.  
  62. >There is also a significant amount of parallellism and pipelining in RISC
  63. >chips.  As soon as an instruction is started another instruction may be
  64. >started even before the completion of the previous instruction.  Output of
  65. >one instructions is passed on to another Unit in the chip for further
  66. >processing while the current unit executing the instruction fetches a new
  67. >instruction to process.  On many RISC chips as many as 4 instructions can be
  68. >completed in one clock cylce as a result of this.
  69.   This is true of most CISC chips these days (for example, the MC68040, which
  70. has an average instruction cycle time of 2.5 clock ticks - don't quote me on
  71. that though).
  72.  
  73. >>I was under the impression that CISC meant complicated instruction set
  74. >>and RISC meant reduced instruction set. So wouldn't that mean larger
  75. >>code size on a RISC machine compared to CISC.
  76. >>What are the advantages of CISC and RISC?
  77. >CISC I think is easier to program.  RISC is difficult as you have to worry
  78. >about timing your instructions properly.  If you issued a memory write and
  79. >do a read from the same location immediately after the write instruction,
  80. >the data you may have wanted to read may not be there yet!  So you may have
  81. >to issue the write a few steps earlier than you would normally on a CISC
  82. >chip.
  83.   Yes, CISC _is_ easier to program in most cases because the instructions are
  84. generalized. As for memory writes.. if your chip is doing this then I suggest
  85. you change manufacturers..
  86.   The ONLY case of where data written may not be changed instantly is in
  87. instruction caches, where a program self-modifies and the instruction cache is
  88. not updated until the chache is flushed/refreshed.
  89.  
  90. >However, the CISC is slow compared to RISC.
  91.   Only just.
  92.  
  93.     Richard.
  94.  
  95. ps. how do I know this? I have just completed the Digital Technology Bachelor
  96. degree, and am moving on to Honours involved in advanced microprocessor design
  97. coupled with advanced parallel microprocessor architectures.
  98.  
  99. -- 
  100. /--------------------------------------------------------------------------\
  101. |Richard Jones, Robotics and Digital Technology, Monash University.     ///|
  102. |  please send all e-mail to .. ... .. drat@yoyo.cc.monash.edu.au   \\\/// |
  103. |                                                                    \///  |
  104.