| www.delorie.com/archives/browse.cgi | search |
| Date: | Sun, 27 Sep 1998 13:16:21 +0300 (IDT) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| To: | Doug Gale <dgale AT mailexcite DOT com> |
| cc: | djgpp AT delorie DOT com, "Renato F. Cantao" <cantao AT ime DOT unicamp DOT br> |
| Subject: | Re: Memory allocation! |
| In-Reply-To: | <360C0F4E.4BC28D4C@mailexcite.com> |
| Message-ID: | <Pine.SUN.3.91.980927131522.25393T-100000@is> |
| MIME-Version: | 1.0 |
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.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |