ftp.delorie.com/archives/browse.cgi | search |
Date: | Mon, 7 Nov 94 13:20:13 -0500 |
From: | dj AT stealth DOT ctron DOT com (DJ Delorie) |
To: | PGOLDA AT eleceng DOT uct DOT ac DOT za |
Cc: | djgpp AT sun DOT soe DOT clarkson DOT edu |
Subject: | Re: GnuC memory allocation and swapping do disk. |
(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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |