• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: gcc and the phantom alloca()?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >gcc and the phantom alloca()? (From: "Tom Harrington" <email@hidden>)
 >Re: gcc and the phantom alloca()? (From: David Alger <email@hidden>)
 >Re: gcc and the phantom alloca()? (From: John Lunt <email@hidden>)

  • Prev by Date: Basics of Creating and Using Custom Palettes?
  • Next by Date: Re: gcc and the phantom alloca()?
  • Previous by thread: Re: gcc and the phantom alloca()?
  • Next by thread: Re: gcc and the phantom alloca()?
  • Index(es):
    • Date
    • Thread