This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: allocation on the stack


> > From: "Thomas van Gulick" <list@Cal040031.student.utwente.nl>
> > To: <gcc@gcc.gnu.org>
> > Date: Tue, 28 Sep 1999 02:21:22 +0200
>
> > Is there any way to recover from the impossibility of allocating
> > some space on stack which is actually not available?  Take for
> > example the following code:
>
> > void function(void) {
> >     char buffer[1*1024*1024*1024];
> >     cout << "function()\n";
> > }
>
> Sure, just call malloc.  Did you expect a different answer?

What actually is the predefined behaviour of a program that runs out of
stack and
can't allocate more stackspace? die?

Thomas
--



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]