CS 61C: Great Ideas in Computer Architecture Introduction ...
[Pages:56]CS 61C: Great Ideas in Computer Architecture Introduction to Assembly Language and
MIPS Instruction Set Architecture
Instructors: Bernhard Boser & Randy H. Katz
9/13/16
Fall 2016 - Lecture #5
1
Outline
? Assembly Language ? MIPS Architecture ? Registers vs. Variables ? MIPS Instructions ? C-to-MIPS Patterns ? And in Conclusion ...
9/13/16
Fall 2016 - Lecture #5
2
Outline
? Assembly Language ? MIPS Architecture ? Registers vs. Variables ? MIPS Instructions ? C-to-MIPS Patterns ? And in Conclusion ...
9/13/16
Fall 2016 - Lecture #5
3
Levels of
Representation/Interpretation
High Level Language Program (e.g., C)
temp = v[k]; v[k] = v[k+1]; v[k+1] = temp;
Compiler Assembly Language Program (e.g., MIPS)
Assembler Machine Language
Program (MIPS)
Machine Interpretation
lw $t0, 0($2) lw $t1, 4($2) sw $t1, 0($2)
sw $t0, 4($2)
Anything can be represented as a number,
i.e., data or instructions
0000 1001 1100 0110 1010 1111 0101 1000 1010 1111 0101 1000 0000 1001 1100 0110 1100 0110 1010 1111 0101 1000 0000 1001 0101 1000 0000 1001 1100 0110 1010 1111
Hardware Architecture Description (e.g., block diagrams)
Architecture Implementation
Logic Circuit Description (Circuit Schematic Diagrams)
9/13/16
Fall 2016 - Lecture #5
4
5
Assembly Language
? Job of a CPU (Central Processing Unit, aka Core): execute instructions
? Instructions: CPU's primitives operations
? Like a sentence: operations (verbs) applied to operands (objects) processed in sequence ...
? With additional operations to change the sequence
? CPUs belong to "families," each implementing its own set of instructions
? CPU's particular set of instructions implements an Instruction Set Architecture (ISA)
? Examples: ARM, Intel x86, MIPS, RISC-V,
IBM/Motorola PowerPC (old Mac), Intel IA64, ...
9/13/16
Fall 2016 - Lecture #5
6
Assembly Language
High Level Language
9/13/16
Fall 2016 - Lecture #5
7
Assembly Language
High Level Language
9/13/16
Fall 2016 - Lecture #5
8
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- modify the teensyduino code from one of these teensy 3 2
- cos 301 topics programming languages
- intcollector a high performance collector for in band
- python 2 7 quick reference
- cs 61c great ideas in computer architecture introduction
- s python program its output will instructables
- this tutorial
- assembly language lab 4
- writing python 2 3 compatible code
- byte array declaration in python
Related searches
- great ideas of philosophy pdf
- emerging computer architecture technology
- computer architecture tutorial pdf
- computer architecture pdf
- computer architecture and design pdf
- fundamentals of computer architecture pdf
- william stallings computer architecture pdf
- computer architecture textbook pdf
- computer architecture tutorial for beginners
- computer architecture and organization pdf
- computer architecture lecture notes
- computer architecture book pdf download