This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: allocation on the stack
- To: gcc at gcc dot gnu dot org, list at Cal040031 dot student dot utwente dot nl
- Subject: Re: allocation on the stack
- From: Mike Stump <mrs at wrs dot com>
- Date: Mon, 27 Sep 1999 17:57:52 -0700 (PDT)
> 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?