www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/11/08/18:06:36

Date: Tue, 8 Nov 1994 09:45:20 +0500
From: hvb AT netrix DOT com
To: PGOLDA AT eleceng DOT uct DOT ac DOT za, dj AT stealth DOT ctron DOT com
Subject: Re: GnuC memory allocation and swapping do disk.
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Reply-To: hvb AT netrix DOT com

 
> 
> (1) The EMS memory is what go32 is using, which is why you start with
> only 4M and not 16M.
> 
> (2) When you call malloc, that doesn't actually *use* memory.  It just
> *reserves* it.  You could malloc 100Mb and not use it, and still have
> most of your physical memory available.  If you want to *use* the
> memory, call memset() to fill it with zeros or something.
> 
> 
You only need to touch one location in every 4k block.

I have another related question?  Will memory allocated by malloc be
paged out?

Cheers,
Hung.

- Raw text -


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