SLR2 Flashcards
What is at the core of all computers
The instruction set, which is the set of instructions written in machine code that can be recognised by a CPU
What are the 2 types of processor
CISC & RISC
Main memory has 10 what
Location addresses named
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
What does the execution unit operate on
The data loaded into one of the 6 registers labelled
r000
r001
r010
r011
r100
r101
What does CISC stand for
Complex Instruction Set Computer
How does CISC work
Aims to complete the task in as few line of code as possible
How does CISC achieve completing code in as few lines as possible
Having higher quality hardware and circuity as it needs to be able to understand and execute a series of operations
How would a CISC processor execute a MULL (multiplication) instruction
It would load all the values into registers then multiply them together store the result and then output it
How much work does the complier have to do in a CISC processor? And what does it do?
Very little
Translate the high level language into assembly code
How many clock cycles does a CISC processor take to execute a line of code
As many as it needs but the lowest being 1
Where are CISC processors found today
In desktop Computers and Laptops but still very uncommon
What are the 2 disadvantages of CISC processors
- CISC processors are physically larger than RISC
- CISC can’t make use of pipelining
What does RISC stand for
Reduced Instruction Set Computer
What is the aim of a RISC processor
To use simple instructions that can be executed within one clock cycle
What doesn’t exist within RISC processors
Complex commands
E.g. MULL
How are bigger commands executed in a RISC processor? E.g. MULL
They are separated into smaller simpler commands
In a RISC processor how much work does the compiler have to do
A lot more than in a CISC processor
In a RISC processor why is more RAM needed
To store assembly instructions