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

  1. Path: sparky!uunet!portal!cup.portal.com!Tony-Preston
  2. From: Tony-Preston@cup.portal.com (ANTHONY FRANCIS PRESTON)
  3. Newsgroups: comp.sys.amiga.hardware
  4. Subject: Re: CISC and RISC
  5. Message-ID: <71896@cup.portal.com>
  6. Date: Thu, 17 Dec 92 07:18:52 PST
  7. Organization: The Portal System (TM)
  8. References: <70436@cup.portal.com> <amipb.04wr@amipb.gna.org>
  9.   <37844@cbmvax.commodore.com><Bz8FD1.Dxt@ns1.nodak.edu>
  10.   <1992Dec14.155039.7747@ugle.unit.no><BzAxFw.Is6@dcs.ed.ac.uk>
  11.   <BzBtx4.DLE@gpu.utcs.utoronto.ca><71809@cup.portal.com>
  12.   <1992Dec16.185008.8536@bmerh85.bnr.ca>
  13. Lines: 60
  14.  
  15. |ANTHONY> Believe the voice of experience, give me a CICS processor any
  16. |ANTHONY> time!  Besides, the 68040 has a 1.3 instruction/clock
  17. |ANTHONY> execution rate, that is nearly as fast as most RISC machines.
  18. |
  19. |But can the 68040 be scaled up to 66-100 Mhz?  The RISC designs can.
  20.   Maybe not, but it could be!  There is little in a RISC that makes
  21.   it be able to run at faster rates that cannot be done to CICS designs.
  22. |
  23. |ANTHONY> So what if the instructions execute three times faster if you
  24. |ANTHONY> need almost twice as many!  In a SPARC, I had 3 instructions
  25. |ANTHONY> to load data from memory(two to build the address, one to
  26. |ANTHONY> load relative to the address in a register), It sure executed
  27. |ANTHONY> those instructions fast...
  28. |
  29. |But...  Ideally you only have to build the address once, leave it in a
  30. |register, and access all/most of your data (certainly any localized
  31. |data) relative to that register.  i.e. you rarely pay that 2
  32. |instruction overhead.
  33.   I have practical experience with the SPARC, you do have to do it.  The
  34.   problem is that people believe that you have unlimited registeYHW rs 
  35.   available, you don't.  The same code moved to a SPARC was about 40%
  36.   larger than the 68020 code.  It was all in assembly.  If you look at
  37.   the register windows and other things in most RISC designs, you have
  38.   twice the registers in most cases(compared to the 680x0 family).  
  39. |
  40. |I will grant that:
  41. |    add.l dx,dy    on the m680X0 (2 bytes)
  42. |is shorter than:
  43. |    add dx,dy,dz   on a RISC type (4 bytes, usually).
  44.   the problem is more this.  I have two data items in memory,  I want to
  45.   add and store them in a third.  On the SPARC, i do somthing like:
  46.  
  47.   Load Item 1(3 instructions)
  48.   Load Item 2(3 instructions)
  49.   add item 1 to item 2(1 instructions)
  50.   Store item 3(3 instructions)
  51.  
  52.  Now with the 680x0, we have:
  53.   Load item 1(1 instruction)
  54.   Add from memory(1 instruction)
  55.   Store to memory( 1 instruction)
  56.  
  57.   So I have a RISC machine with a 80 Mhz clock that takes 125 ns to do the
  58.   operation(aproximately), and my 40 mhz 68040 which takes about 50 ns to
  59.   to the same operation.  Why do I need a "faster" RISC processor when my
  60.   programs are 3 times bigger.  Ok, this is a roughly contrived example, but
  61.   based on REAL WORLD programming experience, this is close to the general
  62.   case.  If you program in C, the compiler will probably do a better job
  63.   of generating code(in fact, I learned several tricks from the C compiler
  64.   machine code listings on the SPARC).  The bottom line is it costs more
  65.   to program the RISC machine.  Programmer costs along with memory and in
  66.   cases like my example, actual speed of execution!  The good things about
  67.   RISC are more registers, not unlimited registers, and faster easier to
  68.   decode instructions.  Well, those advantages are offset as CISC processors
  69.   grab the good features while ignoring the bad.  
  70.   I fully expect that 5 years from now, the distinction will be alot smaller
  71.   between RISC and CISC than it is today!  One of the reasons for more register
  72. s  in the CPU was because memory speeds could not keep up with the CPU, the
  73.   CISC processors today have CACHE instead of registers, a better solution in
  74.   my opinion.
  75.