l1_handouts_4up - Hennessy and Patterson ECE 3140/CS 3420...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 ECE 3140/CS 3420 Computer Organization S i 2009 Spring 2009 MIPS Instruction Set Architecture ECE3140/CS3420 Hennessy and Patterson Read Chapter 1 – 1.1-1.9 • Read Chapter 2 Read Chapter 2 2.1 through 2.7 – 2.8 through 2.14 (for Next Tuesday) – Skim B.1,B.2, B.10 (for Next Tuesday) ECE3140/CS3420 2 Programming Process swap(int v[], int k) {int temp; temp = v[k]; C Language swap: Assembly Language Compiler v[k] = v[k+1]; v[k+1] = temp; } muli $2,$5,4 add $2, $4, $2 lw $15, 0($2) lw $16, 4($2) sw $16, 0($2) sw $15, 4($2) jr $31 00000000101000010000000000011000 00000000000110000001100000100001 Binary Machine Language Assembler ECE3140/CS3420 3 10001100011000100000000000000000 10001100111100100000000000000100 10101100111100100000000000000000 10101100011000100000000000000100 00000011111000000000000000001000 How Well do Computers Work? Performance is critical to both end users and hardware designers – I.e., faster is better! What to measure? – Execution time – the total time from start to finish – Throughput – the total amount of work done in ECE3140/CS3420 Throughput the total amount of work done in a give time Execution time is most important to us at the moment (ignoring system overhead) 4
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon