How to implement heap

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
daniil1909
Posts: 7
Joined: Wed Sep 13, 2023 10:52 pm

How to implement heap

Post 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?
Octocontrabass
Member
Member
Posts: 5805
Joined: Mon Mar 25, 2013 7:01 pm

Re: How to implement heap

Post 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.
Post Reply