Mail Archives: djgpp/1998/08/16/04:00:53
On 14 Aug 1998, Steve Carter wrote:
> : That's something entirely different. Page-aligned in this context
> : means aligned on the 4KB pages used by the PC paging and virtual
> ^
> 64k, I think!
No, x86 paging works with 4KB-long pages.
> Thanks. I was wondering, but I don't think it's possible: How about
> mallocing a 128K block, to guarantee getting a whole page in there
> somewhere, then free()ing parts of that block that aren't used? I presume
> this is not possible...
You are right, this is impossible: you cannot free part of a block that
you got from `malloc'.
But with current machines which have several MBytes of memory, why should
you care about wasting 64KB?
- Raw text -