Date: Sun, 27 Sep 1998 13:16:21 +0300 (IDT) From: Eli Zaretskii To: Doug Gale cc: djgpp AT delorie DOT com, "Renato F. Cantao" Subject: Re: Memory allocation! In-Reply-To: <360C0F4E.4BC28D4C@mailexcite.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Fri, 25 Sep 1998, Doug Gale wrote: > Depends on how you are going to use the memory. If it is just scratch memory > (will be free'd before the function returns) use alloca(). Note that > this uses stack space for the allocation, but reduces it to a cycle or two. Since `alloca' uses the stack space, it is generally ill-suited to large allocations (say, larger than a few KB) because the stack is a sparce resource: only 256KB by default.