Risc Reduced Instruction Set Computer
Risc Reduced Instruction Set Computer
Key features
Large number of general purpose registers
or use of compiler technology to optimize
register use
Limited and simple instruction set
Emphasis on optimising the instruction
pipeline
Advantages
Speed
Proprietary applications
Good for simple ones – too complex for complex
instructions
Comparison of processors
Driving force for CISC
Operations performed
Operands used
Execution sequencing
Studies have been done based on
programs written in HLLs
Operations
Assignments
Movement of data
Conditional statements (IF, LOOP)
Sequence control
Procedure call-return is very time
consuming
Some HLL instruction lead to many
machine code operations
Operands
Software solution
Require compiler to allocate registers
Allocate based on most used variables in a
given time
Requires sophisticated program analysis
Hardware solution
Have more registers
Thus more variables will be in registers
Registers for Local Variables
Compiler simplification?
Disputed…
Complex machine instructions harder to
exploit
Optimization more difficult
Smaller programs?
Program takes up less memory but…
Memory is now cheap
May not occupy less bits, just look shorter in
symbolic form
More instructions require longer op-codes
Register references require fewer bits
Why CISC (2)?
Faster programs?
Bias towards use of simpler instructions
More complex control unit
Microprogram control store larger
thus simple instructions take longer to
execute
Delayed branch
Does not take effect until after execution of
following instruction
This following instruction is the delay slot
Normal and Delayed Branch
Quantitative
compare program sizes and execution speeds
Qualitative
examine issues of high level language
support and use of VLSI real estate
Problems
No pair of RISC and CISC that are directly
comparable
No definitive set of test programs
Difficult to separate hardware effects from
complier effects
Most comparisons done on “toy” rather than
production machines
Required Reading
MIPS Architecture
PA-RISC
SPARC
Power PC