Hi all,

assume that you have a linux kernel with MMU.

When you are trying to malloc() for a given size (1KB), the memory returned to you is continuous for your application, e.g you get a pointer to 0x10000000 and the memory you have been given is 0x10000000-0x10000400

On the RAM chip itself, does it have to be continuous, or the MMU can gather fragments of smaller pieces and give you the virtual 0x10000000 continuous memory space?

So, the real question is:
When you have 1.5 Mbyte of memory reported from the MMU, can you malloc 1Mbyte of continuous memory even it may be fragmented?


Cheers,
Bou
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to