RISC Vs CISC
RISC Vs CISC
RISC Vs CISC
• Let's say we want to find the product of two numbers - one stored in
location 2:3 and another stored in location 5:2 - and then store the
product back in the location 2:3.
The CISC Approach
• The primary goal of CISC architecture is to complete a task in as few lines of assembly as
possible.
• For this particular task, a CISC processor would come prepared with a specific instruction (we'll
call it "MULT").
• When executed, this instruction loads the two values into separate registers, multiplies the
operands in the execution unit, and then stores the product in the appropriate register.
• Thus, the entire task of multiplying two numbers can be completed with one instruction:
• Thus, the "MULT" command described above could be divided into three
separate commands: "LOAD," which moves data from the memory bank to
a register, "PROD," which finds the product of two operands located within
the registers, and "STORE," which moves data from a register to the
memory banks.
LOAD A, 2:3
LOAD B, 5:2 • Because each instruction requires only one clock cycle to execute, the entire
PROD A, B program will execute in approximately the same amount of time as the multi-cycle
STORE 2:3, A "MULT" command. These RISC "reduced instructions" require less transistors of
hardware space than the complex instructions, leaving more room for general
purpose registers. Because all of the instructions execute in a uniform amount of
(Multiplication in RISC) time (i.e. one clock), pipelining is possible.
• Separating the "LOAD" and "STORE" instructions actually reduces the amount of
work that the computer must perform. After a CISC-style "MULT" command is
executed, the processor automatically erases the registers. If one of the operands
needs to be used for another computation, the processor must re-load the data
from the memory bank into a register. In RISC, the operand will remain in the
register until another value is loaded in its place.
The Performance Equation
• The following equation is commonly used for expressing a computer's performance
ability:
• The CISC approach attempts to minimize the number of instructions per program,
sacrificing the number of cycles per instruction. RISC does the opposite, reducing the
cycles per instruction at the cost of the number of instructions per program.
RISC
Roadblocks
• Although Apple's Power Macintosh line featured RISC-based
chips and Windows NT was RISC compatible, Windows 3.1 and
Windows 95 were designed with CISC processors in mind.
• Another major setback was the presence of Intel. Although their Despite the advantages of RISC
CISC chips were becoming increasingly unwieldy and difficult to based processing, RISC chips
develop, Intel had the resources to plow through development took over a decade to gain a
and produce powerful processors. Although RISC chips might
surpass Intel's efforts in specific areas, the differences were not foothold in the commercial
great enough to persuade buyers to change technologies. world. This was largely due to a
lack of software support.
The Overall RISC Advantage
• Today, the Intel x86 is arguable the only chip which retains CISC
architecture.