Académique Documents
Professionnel Documents
Culture Documents
Processes
(Section 2.1)
myprogram.c myprogram.o
int j; object
char* s = “hello\n”; assembler data
file
int p() {
j = write(1, s, 6); data
data
data
return(j);
}
libraries
….. linker
p: and other
store this objects
store that
push
jsr _write
compiler ret
etc.
data program
myprogram.s
myprogram
COP 4600 Operating Systems Lecture 3 (executable file) 4
A Peek Inside a Running Program (review)
0
CPU common runtime
x
your program
code library
Rn heap
PC x
SP y
registers
y
stack
high
“memory”