Processor Types and Instruction Sets Flashcards

1
Q

When designing an instruction set what needs to be considered?

A

● Physical size of the Processor
● How the processor will be used
● Power consumption

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are pros/cons to a small instruction set?

A

easy to implement but
inconvenient for programmers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what are pros/cons to a large instruction set?

A

convenient for programmers but
expensive to implement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the different parts of an instruction?

A

Opcode, Operands, Result

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the Opcode in the context of instructions?

A

It specifies the instruction to be executed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are operands in the context of instructions?

A

They specifie the registers, memory location, or constants used in the instruction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the result in the context of instructions?

A

Specifies the registers or memory location where the result of the operation will be placed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the properties of fixed length instruction length?

A

● Every instruction has the same length
● Reduces the complexity of the hardware
● Potentially, the program will run faster.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the properties of variable length instruction length?

A

● Some instructions will take more space than others
● It is appealing to Assembly code programmers (Not a very
strong advantage. Most programs are written in a high-level language).

● More efficient use of memory.
● Pentium continues using variable length instructions
because of backward-compatibility issues.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are General Purpose registers?

A

● They are used to store operands and results
● Each register has a small size: 1 byte, 4
bytes, or 8 bytes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is register spilling?

A

Save registers in memory for later use. The number of registers is limited, so very often it is necessary to use memory or the stack to store temporal values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is register allocation?

A

Choose what values to keep in the registers instead of memory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is CISC and its properties?

A

Complex Instruction Set Computer

● It contains many instructions, often hundreds.
● Some instructions take longer than others to
complete
● Variable Length Instructions
● Examples:
● Move a range of bytes from one place in memory
to another
● Compute the length of a string
● Example: x86

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is RISC and its properties?

A

Reduced Instruction Set Computer

● It contains few instructions 32 or 64
● Instructions have a fixed length
● Most instructions are executed in one clock
cycle.
● Example: Sparc, Alpha, MIPS, ARM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is an example of a cisc architecture?

A

x86

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is an example of a risc architecture?

A

ARM