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.