Page 1 of 1
How to implement heap
Posted: Sat May 10, 2025 4:40 am
by daniil1909
Hello everyone. I am on memory managment developing stage and have some questions:
1. How to implement heap with paging enabled?
2. How does pages heap allocation work?
3. Why page directories and page tables have different bits?
Re: How to implement heap
Posted: Sat May 10, 2025 10:06 pm
by Octocontrabass
daniil1909 wrote: ↑Sat May 10, 2025 4:40 am1. How to implement heap with paging enabled?
That's a pretty vague question. Do you already know how to implement a heap without paging?
daniil1909 wrote: ↑Sat May 10, 2025 4:40 am2. How does pages heap allocation work?
Pages are not allocated from the heap. Or are you asking how the heap allocates pages?
daniil1909 wrote: ↑Sat May 10, 2025 4:40 am3. Why page directories and page tables have different bits?
They ran out of space to put the same bits at the same offset in both.