Memory Layout
Segment | Address | Purpose |
---|---|---|
Text | 0x0000 | Program binary machine code is stored in the text segment |
0x00FF | ||
Data | 0x0100 | Static data is stored in the date segment | 0x01FF |
Heap | 0x0200 | Memory is allocated dynamically within the dynamic heap - heap is a type of data structure. | Memory chunks are allocated here - hopefully won't run into stack |
|
|
|
Stack frames are added here - hopefully won't run into heap |
Call-stack | 0xFFFF | A program's runtime state is mainly stored in the call-stack. |
References