Memory Manager - Bitmap
Posted: Thu Jun 28, 2012 2:46 am
I'm working on a memory manager using a bitmap.
I'm still having some difficulty understanding how much memory to mark as allocated for the Kernel.
I've read this article on the memory layout for C programs:
http://www.geeksforgeeks.org/archives/14268
From there I can see that the code and the initialised data are part of the Kernel binary, but it looks like there is more memory allocated for the unitialised data, heap and stack.
Problem is that i'm not sure how much to mark as allocated.
I've read that other people use a linker script to determine how much to allocate, however I'm using VC++ (but I'm using C not C++) not gcc, so I'm not sure if that's an option.
I used a program called PE explorer to see if I could get any useful information there, but I don't think it will help (attached).
Any ideas? Even just a pointer in the right direction would be great.
I'm still having some difficulty understanding how much memory to mark as allocated for the Kernel.
I've read this article on the memory layout for C programs:
http://www.geeksforgeeks.org/archives/14268
From there I can see that the code and the initialised data are part of the Kernel binary, but it looks like there is more memory allocated for the unitialised data, heap and stack.
Problem is that i'm not sure how much to mark as allocated.
I've read that other people use a linker script to determine how much to allocate, however I'm using VC++ (but I'm using C not C++) not gcc, so I'm not sure if that's an option.
I used a program called PE explorer to see if I could get any useful information there, but I don't think it will help (attached).
Any ideas? Even just a pointer in the right direction would be great.