lec4_compile_2_execute

Procedures see example on page 143 of textbook page

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: ersion). in Spring 2014, Feb 10 . . . Spring ELEC 5200-001/6200-001 Lecture 4 20 Linker System program. Inputs: Program and procedure libraries, Inputs: all in machine code. all Output: Executable machine code. Linker functions: – Links the machine code of procedures from a Links library. library. – Sets memory addresses of data variables for Sets procedures. procedures. – Sets procedure addresses in the calling Sets program code. program Spring 2014, Feb 10 . . . Spring ELEC 5200-001/6200-001 Lecture 4 21 Loader System program Inputs: Machine code and data from disc Output: Set up program and data in Output: memory memory Loader functions: – Read executable code and data from disc to Read computer memory computer – Initialize registers and set stack pointer to first Initialize free location free – Transfer control to a start-up routine that calls Transfer start-up the main routine of the program the Spring 2014, Feb 10 . . . Spring ELEC 5200-001/6200-001 Lecture 4 22 Recursive and...
View Full Document

Ask a homework question - tutors are online