Date: Thu, 6 Jul 2000 19:17:03 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: Amount of Memory used by a djgpp program. In-Reply-To: <3964605e.336726@news.huji.ac.il> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 6 Jul 2000, Hbar wrote: > Sorry for that. What I ment was that if for instance I measure 104Kb > usually, then running again with slight modification (clearly > unrelated to memory usage) I get 170MB as output. I thought that my > casting choise is wrong. Maybe the program allocate memory not > sequentially? This might happen on Windows. I suggest to print the two values of sbrk, and if one of them is close to 0xffffffff, this is the reason.