www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/12/19:27:53

From: Leath Muller <leathm AT gbrmpa DOT gov DOT au>
Message-Id: <199608122323.JAA05799@gbrmpa.gov.au>
Subject: Re: Freeing and not freeing Windoze memory
To: deef AT pobox DOT oleane DOT com (Francois Charton)
Date: Tue, 13 Aug 1996 09:23:32 +1000 (EST)
Cc: djgpp AT delorie DOT com
In-Reply-To: <320F2768.2680@pobox.oleane.com> from "Francois Charton" at Aug 12, 96 02:45:28 pm

> Also, if you do not need too much memory (several kbytes, 10s of kbytes, 
> but not 100s of kbytes) you can consider using alloca(), which allocates 
> data from the stack. The good thing with it is that your data will be 
> automatically freed when the function you call alloca() in is left, and 
> also it is very fast. The bad thing is that stack length is limited to 
> 256kbytes, so you should not use it for big chunks of data.

Just a question on this: does DJGPP still allocate memory in powers of 2
when allocating this way, or does it allocate the size of the structure?

Leathal.

- Raw text -


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