3

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?

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

1 Comment

From what I know of windows systems: Windows® does not have a swap, but it has a similar system (the infamous pagefile.sys). Also, there are APIs to map a file to memory (see:Managing Memory-Mapped Files). So, I would say YES, things are similar on windows system. But don't take my word for it.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.