I used to develop my OS in Windows using DJGPP, In my memory management code I used memory map structure(to count RAM) as:
Code: Select all
struct mmap
{
unsigned long long base;
unsigned long long length;
unsigned int type;
}
Now this is giving a lot of probs... The kernel compile nicely.. But there is some prob in this structure.. When I print sizeof(struct mmap)... everytime it gives we weired numbers...
Why this is so? Is it so that GCC does not support "long long"? I want a data type to store 64 bit data(not double plz)..