Ch05 (1)
Ch05 (1)
A Closer Look at
Instruction Set
Architectures
Chapter 5 Objectives
2
5.1 Introduction
3
5.2 Instruction Formats
4
5.2 Instruction Formats
5
5.2 Instruction Formats
6
5.2 Instruction Formats
7
5.2 Instruction Formats
8
5.2 Instruction Formats
• Big endian:
– Is more natural.
– The sign of the number can be determined by looking at
the byte at address offset 0.
– Strings and integers are stored in the same order.
• Little endian:
– Makes it easier to place values on non-word boundaries.
– Conversion from a 16-bit integer address to a 32-bit
integer address does not require any arithmetic.
9
5.2 Instruction Formats
10
5.2 Instruction Formats
11
5.2 Instruction Formats
12
5.2 Instruction Formats
13
5.2 Instruction Formats
14
5.2 Instruction Formats
15
5.2 Instruction Formats
16
5.2 Instruction Formats
17
5.2 Instruction Formats
register.
18
5.2 Instruction Formats
Would this program execute faster than the corresponding (longer) program that we saw in the stack-
based ISA?
19
5.2 Instruction Formats
20
5.2 Instruction Formats
21
5.2 Instruction Formats
23
5.4 Addressing
24
5.4 Addressing
25
5.4 Addressing
27
5.4 Addressing
28
5.4 Addressing
29
5.5 Instruction-Level Pipelining
30
5.5 Instruction-Level Pipelining
31
5.5 Instruction-Level Pipelining
34
5.5 Instruction-Level Pipelining
35
5.5 Instruction-Level Pipelining
36
5.6 Real-World Examples of ISAs
37
5.6 Real-World Examples of ISAs
39
5.6 Real-World Examples of ISAs
40
5.6 Real-World Examples of ISAs
41
5.6 Real-World Examples of ISAs
42
5.6 Real-World Examples of ISAs
43
Chapter 5 Conclusion
46