1.1.2 - Types of processor Flashcards
What is CISC?
Complex instruction set computers
Comlpex instructions are built into the machines hardware.
A complex instruction is capabale of understanding and executing a series of smaller sub-tasks that make up the single instruction. Foe example a single instruction can do the loading, multiplication and storing of a result.
EXAMPLE:
CISC = MULT A, B
High level = A = A * B
Advantages of CISC
Compiler has to do very little work to translate a high level language into machine code.
Very little RAM is required to store instructions due to the instructions being so short.
Disadvantages of CISC
Many specialised instructions are built into the hardware but about 20% of them are never used in the averae program.
What is RISC?
Reduced instruction set computers
Opposite approach to CISC
Only simple instructions, each taking one clock cycle, can be executed. Thus the example of a CISC instruction ‘MULT A, B’ may be written:
LDA R1, A
LDA R2, B
MULT R1, R2
STO R1 A
Advantages of RISC
Because each instruction takes the same amount of time, pipelining is possible, and four instructions will execute just as quickly as a single CISC instruction.
RISC has largely replaced CISC because of this, however CISC is still used in microcontrollers and embedded systems.
Disadvantages of RISC
Compiler has to do more work to translate high-level code into machine code.
More RAM is required to store the machine code instructions.