lec4_compile_2_execute

spring elec 5200 0016200 001 lecture 4 17 mips

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: er Example Use register convention: – Registers 16-23 are $s0 through $s7 – Registers 8-15 are $t0 through $t7 Machine code: three 32-bit words from Machine assembly code of slide 10 assembly add add sub 000000 10001 10010 01000 00000 100000 000000 10011 10100 01001 00000 100000 000000 01000 01001 10000 00000 100010 Spring 2014, Feb 10 . . . Spring ELEC 5200-001/6200-001 Lecture 4 18 Assembler and Linker Assembly code Main Proc A Machine code (binary) Assembler Assembler Object file Object file Linker Executable File (binary) Proc B Assembler Object file Program Library (binary) Spring 2014, Feb 10 . . . Spring ELEC 5200-001/6200-001 Lecture 4 19 Symbols Program names and labels are symbols. In executable code, a symbol is a memory In address. address. In object code, a symbol’s final value (address) In has not been determined: has Internal symbols (statement labels) have relative addresses. External symbols (called subroutine names, library External procedures) are unknown (unresolved). procedures) See example on page 143 of textbook (page 110 See in old v...
View Full Document

Ask a homework question - tutors are online