Search code examples
memory-managementheap-memorystack-memory

Other areas of memory (besides stack and heap)?


I know the basics of the Stack, and the Heap, but are there any other areas in a PC's memory that a program can access and store temporary data?


Solution

  • Usually, you allocate small-sized temporary variables on the stack. You request memory from the heap for larger chunks. But you can also map a file into memory.

    Below is a representation of system memory by kind.
    Source: this very-well explained article: Understanding Memory that should answer most of your questions.

    enter image description here