








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









Stack (local)
Unallocated
Heap (new)
Static storage Executable Address 0 code
Admin word
Next free
Prev. free X Y Z
0
128
64 32 0
X = malloc (32);
192
160 128
64
32
0
Y = malloc (32); Z = malloc (64); Q = malloc (32); R = malloc (64)
192 160 128
64
32 0
free (Y); free (R);
128
64
0 free (X); free (Q);
Y = X.tail;
0 A 1 B 1 C etc.
Roots B 5 E
from: 42
to:
(a)
Roots B’ 5 E’
from: 42
to: D
(b) (^) E’ B: Old object
B’: New object
Roots B’ 5 E’
from: 42
to: D’
(c)
Roots B’ 5 E’
from: 42
to: D’
(d)