Newbie Memory Management
Posted: Sun Feb 26, 2006 6:37 pm
Appologies if what I'm about to ask is appauling newbie-ish or covered by another topic (I did search first however), but as I've only just started to play with the OS Dev./Kernel Design I'm feeling a tiny bit out of my depth
I've got a very basic Hello World Kernel up and running from Joachim Nock and K.J.'s tutorial on Bona Fide (a fair task in itself seeing as I come from the rather pampered C dev route of Visual Studio). Now looking through various articles and tutorial kernels it would seem that my next task would be to implement some form of memory management (tho I'm open to other suggestions as to where I could move on from this point). I notice that geekOs and the first Linux Kernel both implement some form of malloc/free for their memory management, now I've dabbled with basic memory management in a few projects (nothing of any real scope tho) and from an ease of use POV (if not nessicarily ease of coding) I've always been very fond of Garbage Collectors. (There is quite a nice article here on various memory management stratergies http://www-128.ibm.com/developerworks/library/l-memory/)
My question here is are there any specific gotcha's I need to be aware of if I'm thinking of using GC as a memory management stratergy in a Kernel?
Many thanks
E
I've got a very basic Hello World Kernel up and running from Joachim Nock and K.J.'s tutorial on Bona Fide (a fair task in itself seeing as I come from the rather pampered C dev route of Visual Studio). Now looking through various articles and tutorial kernels it would seem that my next task would be to implement some form of memory management (tho I'm open to other suggestions as to where I could move on from this point). I notice that geekOs and the first Linux Kernel both implement some form of malloc/free for their memory management, now I've dabbled with basic memory management in a few projects (nothing of any real scope tho) and from an ease of use POV (if not nessicarily ease of coding) I've always been very fond of Garbage Collectors. (There is quite a nice article here on various memory management stratergies http://www-128.ibm.com/developerworks/library/l-memory/)
My question here is are there any specific gotcha's I need to be aware of if I'm thinking of using GC as a memory management stratergy in a Kernel?
Many thanks
E