delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/16/04:00:53

Date: Sun, 16 Aug 1998 11:00:40 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Steve Carter <shc103 AT york DOT ac DOT uk>
cc: djgpp AT delorie DOT com
Subject: Re: Page Boundaries
In-Reply-To: <6r1a8p$c7o$4@pump1.york.ac.uk>
Message-ID: <Pine.SUN.3.91.980816105811.6981N-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019