delorie.com/archives/browse.cgi | search |
----- Original Message ----- From: "Christopher Faylor" <cgf AT redhat DOT com> To: <cygwin-developers AT cygwin DOT com> Sent: Tuesday, October 23, 2001 12:23 PM Subject: Re: 1.3.4 status? > On Tue, Oct 23, 2001 at 12:18:05PM +1000, Robert Collins wrote: > >on every call, it checks the stack depth. _everything_ allocated from a > >call point deeper in the stack is reclaimed, and freed (alloca only uses > >the stack to identify when to do stuff, not for storage). > > That's what libiberty's alloca does. That is for systems for which a > real alloca is difficult or impossible. That isn't what the builtin > alloca does. *Blush*. I should have recalled builtin-alloca's existence. > The alloca that cygwin uses is below. This is from > gcc/config/i386/cygwin.asm. ... or in other words, allocate directly on the stack. Cool. Rob
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |