CIE AS & A Level Computer Science, section 15.1 (Processors, parallel processing and virtual machines)
Instruction sets
A processor's instruction set is the list of instructions it can carry out. Two design approaches exist.
CISC (Complex Instruction Set Computer)
- A large set of instructions, including complex ones that do a lot in one instruction (such as one that loads, adds and stores).
- Instructions have different lengths and take different numbers of clock cycles.
- Fewer instructions are needed for a program, so programs are smaller.
- Hardware is more complex, with a complicated control unit.
- Fewer registers, and many addressing modes.
RISC (Reduced Instruction Set Computer)
- A small set of simple instructions.
- Instructions are all the same length and most take one clock cycle.
- More instructions are needed for the same task, so programs are larger.
- Simpler hardware, with a simple control unit, so the chip is cheaper and uses less power.
- Many registers, which reduces slow memory access.
- Well suited to pipelining, because instructions are uniform.
Comparison
| Feature | CISC | RISC |
|---|---|---|
| Number of instructions | many, complex | few, simple |
| Instruction length | varies | fixed |
| Cycles per instruction | several | usually one |
| Registers | fewer | more |
| Pipelining | harder | easier |
| Code size | smaller | larger |
Example
An instruction to multiply two values in memory might be one CISC instruction, but in RISC it needs separate load, multiply and store instructions.
Where used
RISC is common in mobile devices (low power). CISC is common in many desktop processors.
Common mistake: saying RISC is "faster" in every case. It runs simple instructions quickly, but needs more of them. Also, link features properly: a fixed instruction length is what makes RISC easy to pipeline.
Exam tip: to compare, pair features: "RISC has fixed-length instructions, whereas CISC has variable-length ones". Give a consequence, such as lower power or smaller programs.
Check yourself
Why does RISC need more instructions for a task than CISC?
Each RISC instruction is simple, so complex operations must be split into several instructions.
Why is RISC well suited to pipelining?
Its instructions are the same length and take about one cycle each, so the stages line up.
Give one advantage of CISC.
Programs are smaller, because one instruction can do a lot.