From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa751,be70f766e74c3946 X-Google-Attributes: gidfa751,public X-Google-Thread: 110292,8ecdad84850d9973 X-Google-Attributes: gid110292,public X-Google-Thread: 1164f8,8ecdad84850d9973 X-Google-Attributes: gid1164f8,public X-Google-Thread: f8403,5b9190c01066e4f0 X-Google-Attributes: gidf8403,public X-Google-Thread: f6df3,8ecdad84850d9973 X-Google-Attributes: gidf6df3,public X-Google-Thread: 1051a8,8ecdad84850d9973 X-Google-Attributes: gid1051a8,public From: sschaem@teleport.com (Stephan Schaem) Subject: Re: MIPS R10K vs Alpha Date: 1996/04/14 Message-ID: <4kpmq6$8pd@nadine.teleport.com>#1/1 X-Deja-AN: 147377310 distribution: world references: <4kb8a2$m6f@cville-srv.wam.umd.edu> <4kohsh$oe2@vidar.diku.dk> <4kohbl$o7b@vidar.diku.dk> <4kp63i$s2l@babbage.ece.uc.edu> followup-to: comp.sys.sgi.hardware,comp.sys.powerpc,comp.sys.powerpc.tech,comp.sys.intel,comp.sys.dec,comp.sys.mips organization: Teleport - Portland's Public Access (503) 220-1016 newsgroups: comp.sys.sgi.hardware,comp.sys.powerpc,comp.sys.powerpc.tech,comp.sys.intel,comp.sys.dec,comp.sys.mips Steve Bakke (sbakke@uceng.uc.edu) wrote: : In article <4klvpb$mh0@fnnews.fnal.gov> , morphis@fnalv1.fnal.gov writes: : >hmmm, I had thought that RISC instructions were simple enough that breaking : >them up would be difficult... while I understand that different RISCs : >are (duh!) different, I thought that the ALPHA had one of the simpler : >instruction sets and yet I thought I saw a post earlier in this thread : >stating that the ALPHA had a (relatively) large number of pipeline stages. : > : > : Don't take the "simpler" nature of RISC too literally. It is really a : misnomer. : Just because the typical RISC instruction is simpler doesn't mean there : isn't : plenty of work involved. Here is a typical pipeline structure: : 1. Instruction fetch : 2. Instruction decode : 3. Access data cache/fetch operands : 4. Execute operation : 5. Store results in register : You could break this up much further if you like as Digital has done. The : Alpha architecture was designed so that high clockspeed implementations : would be possible. : Here are several items which usually separate RISC and CISC in my opinion: : 1) Instruction uniformity : CISC architectures can have instructions of variable length. For : instance, : take the 68000. Some simple instructions which add two numbers are only : 16 bits long, while branch instructions were 32 or 48 bits long. This : makes : pipelining and decoding more difficult. You can keep branching to 16bit instruction, and is faster. The problem is that you cannot do conditional branching aside using an imediate PC offset. The 'best' example to show a 68020 is a cisc is when you find instruction like this one:) move.b ([array.w,pc],d0.w*8,entry.w),([palette.l,a1,d1.w*4],red.w) variant of this can take upto 176bits, and the source/destination can be any of the 14 addressing modes. : RISC architectures have a fixed instruction length. The uniform size of : an : instruction to be fetched makes pipelining easy. And with compiler cooperation you could set that register usage is alway interleaved to issue 2 inst/cycle without any real logic to decode in advance if what you will do will afect the next instruction. I dont know if any chip actually uses something like this tho? : 2) Memory Access : CISC architectures often had instruction which would access more than one : memory operand in a given instruction, rather than just working with : internal : registers. They also have many different addressing modes to allow an : assembly language programmer to have a lot of flexibility. I dont think is very true with x86... but defently with the 680x0. I'm sure nobody really care :) but on the 680x0 its sometime faster to disect a complex addressing mode to a few instructions. The result dont mean larger code tho, just faster execution. : RISC: Typically only access memory using simple Load or Store : instructions. All : processing is done on internal registers with data loaded with a load : instruction. I personaly see see cisc instruction like this: add.l (registerA),registerB AS (where TR is an internal Scratch(temporary) Register) load (registerA),TR add.l TR,registerB : So, while a CISC instruction could load data, compute results, and store : it all : in one - the RISC would first execute a load instruction, then execute an : arithemetic instruction, then execute a store. This is one reason why : RISC code : tends to take up more space than CISC code. Added to this is also the possible tremandeous complex addreesing modes that a cisc design can offer, defenetly reduce the register usage and code size... but dont mean faster operation. The x86 dont seem more capable the a PPC in that area. In fact the x86 dont seem to take any good point of the CISC ideologie, or any good point of the RISC ideologie. Stephan