Professional Documents
Culture Documents
369W17 Slideset04
369W17 Slideset04
January 2017
ENCM 369 Winter 2017 Slide Set 4 for Lecture Section 01 slide 2/63
Contents
Encoding of jr
31 26 25 21 20 16 15 11 10 65 0
000000 000000000000000001000
Tools are programs that read input files and write output files.
Running an executable
For the A.L. file from two slides back, let’s assume . . .
I foo has 18 instructions in total;
What happened?
I Did the compiler have a problem?
Text and data segments get copied into memory from the
executable file (as is the case with a statically-linked
executable).
It is the operating system’s responsibility to make sure
library machine code and data are in memory when needed.
Often, library machine code is already in memory when a
program starts, because some other running programs also
need it—this is useful sharing of memory by multiple running
programs.
ENCM 369 Winter 2017 Slide Set 4 for Lecture Section 01 slide 52/63