Lecture_3 - ECE 445 Computer Organization Operands Operands...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE 445 – Computer Organization Operands
Background image of page 1

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

View Full DocumentRight Arrow Icon
ECE 445 - Computer Organization 2 Operands High-Level languages like C, Java, etc. have variables, arrays, pointers, data structures, etc. Data is in memory. Operands can be in memory and/or in registers. MIPS (and LC3b) are “Load and Store” architectures. - Data must be loaded into a register before it can be used as an operand.
Background image of page 2
ECE 445 - Computer Organization 3 Registers MIPS has 32 registers - $t0 - $t7 Correspond to register number 8 – 15 Not preserved across function calls - $s0 - $s7 Correspond to register number 16 – 23 Preserved across function calls Compiler assigns each operand and the result to a register. a = b + c; add $t0, $s0, $s1
Background image of page 3

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

View Full DocumentRight Arrow Icon
ECE 445 - Computer Organization 4 Registers Additional registers in MIPS Architecture - $zero Special register Always returns a value of zero (0) - $PC Program Counter Stores the address of the current instruction - $SP Stack Pointer - $FP Frame Pointer
Background image of page 4
ECE 445 - Computer Organization 5 Design Principle 2 : Smaller is faster.
Background image of page 5

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

View Full DocumentRight Arrow Icon
ECE 445 - Computer Organization 6 Registers More registers take more time for decoding the address and multiplexing the data.
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/15/2010 for the course ECE 445 taught by Professor Tabak,d during the Spring '08 term at George Mason.

Page1 / 21

Lecture_3 - ECE 445 Computer Organization Operands Operands...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online