delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/12/26/06:51:46

Date: Mon, 26 Dec 94 09:33:31 EDT
From: acmq AT beta DOT coe DOT ufrj DOT br (Antonio Carlos Moreirao de Queiroz)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Memory allocation

Eli Zaretskii, answering a question, writes:

> On the other hand, if you need to know how much memory is left in
> the pages which were already allocated and then freed (they are
> not returned to the system, so the above call won't count them),
> then I think you will have to hack memory-allocation routines, there
> is nothing AFAIK like the Borland's heap_left() and heap_walk().

The Borland's heap_walk() and heapcheck() routines are very useful
in the detection of bugs in memory allocation. Someone with more
experience with the memory allocation used by djgpp could write similar
routines.

Antonio Carlos M. de Queiroz


- Raw text -


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