Geting a go on memory management

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
mr. xsism

Geting a go on memory management

Post by mr. xsism »

This has been one of my long planned goals so far in OSdev. I need so help in pointing me to resources that are good for a beginner. I have already looked at somes src code and a tut or two, but i need more. If someone can explain it to me that'd be cool. email me at monkeykiller4u @ hotmail dot com <- my spam account.
---
Or if any links can be provided that too would be great. Maybe even some src code, but not EVERYTHING!! I don't want to take anyone's code! thx.

Regards,
Mr. xsism
Tim

Re:Geting a go on memory management

Post by Tim »

No source code, but http://osdev.berlios.de/ -- read the memory management tutorials I wrote. Afterwards, come back with any questions.
mr. xsism

Re:Geting a go on memory management

Post by mr. xsism »

well, I have actually alread yread these tuts tim, i like them. I printed them out a while ago. I'll read them and come back if i need anything. Here are some questions i need answered:
-if i use a stack approach, how would i figure out what memory pages are free?
-when i dealloc memory,what exactly happens?
-what kind of structures do i need in my code(btw,ii already have some,but just asking)
---
i already understand a lot. I guess i'm kinda lazy
I've officially started mm today. Thx

Regards,
Mr. xsism
Whatever5k

Re:Geting a go on memory management

Post by Whatever5k »

-if i use a stack approach, how would i figure out what memory pages are free?
If you use the stack approach, all pages put on this stack are free. If you need memory, you pop pages off the stack...
-when i dealloc memory,what exactly happens?
If you want to free/dealloc *physical* memory, you just put the pages back on the stack (when using stack approach)...

I don't know what you mean with the structures, sorry...
It all depends what you want to do and especially *how* you want to do it...you may use structures, but you needn't...
Post Reply