Created
May 26, 2026 07:21
-
-
Save pkutaj/1ddc1d177c523acb2d3eaf129684f0b2 to your computer and use it in GitHub Desktop.
Explaining The Heap snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| high address ┌────────────┐ | |
| │ stack │ ← grows downward, per-thread | |
| │ ↓ │ | |
| │ (gap) │ | |
| │ ↑ │ | |
| │ heap │ ← grows upward, shared across threads | |
| │────────────│ | |
| │ BSS │ uninitialised globals | |
| │ data │ initialised globals | |
| │ text │ code | |
| low address └────────────┘ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment