1.1.2 Type of processor
-
The instruction set of a CPU is the list of instructions which it is able to decode
- Reduced Instruction Set Computers (RISC)
- These processors use simple instructions, which can be executed within a single clock cycle
- Complex Instruction Set Computers (CISC)
- These processors have a much larger instruction set than RISC processors, allowing more tasks to be accomplished by as few lines of assembly code as possible. However, as these instructions are more complex, they may take multiple FDE cycles to execute.
There are two main approaches to the architecture of processor:
| RISC Processors | CISC Processors |
|---|---|
| All instructions executed within a single clock cycle | Includes complex instructions which take many clock cycles |
| Smaller instruction set means less transistors are needed, reducing required power and reducing costs to build | Larger instruction set means more transistors are needed, increasing required power and increasing costs to build |
| As instructions usually take a single clock cycle, pipelining can be used to increase processor efficiency | As instructions may take multiple clock cycles, pipelining can't be used to increase processor efficiency |
| More memory required to store programs | Less memory required to store programs |
| Harder for programmers to write programs for (in assembly language), as more instructions need to be written and its assembly language isn't very similar to a high level language | Easier for programmers to write programs for (in assembly language), as fewer instructions need to be written and its assembly language is closer to a high level language |
| Compiler needs to do more work to translate high level code into machine code (as code needs to be broken down into very simple instructions) | Compiler needs to do less work to translate high level code into machine code (as code can be broken down into more complex instructions) |