meet_the_families
This is an old revision of the document!
Table of Contents
Meet the Families
This lecture takes a closer look at the instruction families. In addition to examining syntactical issues (such as allowed addressing modes and immediate sizes), we also study the implied algorithms (i.e. how the CPU executes the instruction). Furthermore, we also explore design choices by asking why certain instructions were (or were not) added to the ISA.
Outline
- Design Principles
- Instructions versus Pseudo Instructions
- The Arithmetic Family
- The Branch Family
- The Jump Family
- The Logical Family
Big Ideas
- Given a design choice, optimize the common case
- The two's complement fuses addition and subtraction and thus eliminates the need for separate hardware for each
- Don't subtract in order to compare
- You need to store one return address per method invocation
- Bit-level manipulation is doable even with 32-bit level instructions
- MIPS designers opted for regularity in instruction size, all instructions are 32 bit wide. The led to simplicity and catered for the common case. And to support the odd case, they introduced
lui
.
Slides from Lecture
To Do
- Start reading and performing the tasks of Lab-B.
- Read Chapter 2 of our textbook up to, and including, Section 2.8 but skip Section 2.4. (If you have the old edition of the textbook, read Ch 3 up to and including, Sec 3.7 but skip Sec 3.4.)
meet_the_families.1191090050.txt.gz · Last modified: 2007/09/29 18:20 by roumani