BY ZUL
FOR HAMAZOSK
INTRODUCTION
MEMORY ALLOCATION
MEMORY ALLOCATION
2. Data segment :
- This holds the data that the program operate on. It
is divided into two parts. Static data contains data
that are statically allocated whose size does
notchange as the program access them. On top of
static data is dynamic data. This data is allocated
and deallocated by the programs executes.
3. Stack segment :
- This segment resides at the top of user address
space. In a high level language program, local
variable and parameters are pushed and popped on
the stack as the operating system expands and
shrink the stack segment toward segment toward
the data segment.
DATA ALLIGNMENT
TABLE 1
TABLE 2