Re: gcc and the phantom alloca()?
Re: gcc and the phantom alloca()?
- Subject: Re: gcc and the phantom alloca()?
- From: "Tom Harrington" <email@hidden>
- Date: Sun, 11 Jun 2006 15:29:16 -0600
On 6/10/06, John Lunt <email@hidden> wrote:
I believe gcc uses alloca(.) for stack variables of variable size.
For example in C if you use
// gnu C extension, or vanilla C++.
int n = foo();
double x[n]; // implicitly allocated using alloca(.)
Yes, this appears to be the case. It makes perfect sense, but had not
occurred to me (too bad the error message wasn't a little more
helpful). Thanks for explaining that, and thanks also to the person
who explained it in a private email.
--
Tom Harrington
email@hidden
AIM: atomicbird1
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden