www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/06/12:17:51

Date: Thu, 6 Jul 2000 19:17:03 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
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: <Pine.SUN.3.91.1000706191607.26613D-100000@is>
MIME-Version: 1.0
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

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.

- Raw text -


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