lec4_compile_2_execute

spring see pages 149 150 elec 5200 0016200 001

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ges 149-150 ELEC 5200-001/6200-001 Lecture 4 3 Memory and Registers Memory byte addr. 0 4 8 12 . 4n . . . . . Spring 2014, Feb 10 . . . Spring Word 0 Word 1 Word 2 Register 0 zero Register 1 Register 2 Register 3 Word n Word n+1 Register 4 Register 5 . . . Register 31 ELEC 5200-001/6200-001 Lecture 4 jump addr. 4 Policy of Register Usage Policy (Conventions) (Conventions) Name Register number 0 $zero 1 $at 2-3 $v0-$v1 4-7 $a0-$a3 8-15 $t0-$t7 16-23 $s0-$s7 24-25 $t8-$t9 28 $gp 29 $sp 30 $fp 31 $ra Usage the constant value 0 reserved for use by assembler values for results and expression evaluation arguments temporaries saved more temporaries global pointer stack pointer frame pointer return address Register 1 ($at) reserved for assembler, 26-27 for operating system 2004 © Morgan Kaufman Publishers Spring 2014, Feb 10 . . . Spring ELEC 5200-001/6200-001 Lecture 4 5 Translating a Program to Translating Executable Code Executable C Program (Data) Compiler (Sys. Prog.) Machine Language Object Code (...
View Full Document

Ask a homework question - tutors are online