• 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: Adin Hunter Baber <email@hidden>
  • Date: Sun, 11 Jun 2006 18:13:59 -0500


On 2006 Jun 10, at 11:58 AM, John Lunt 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(.)



Variable length arrays (VLA) are part of C99, not C++. 

Here's a good list of the differences between the two languages:
http://david.tribble.com/text/cdiffs.htm

Adin Hunter Baber
email@hidden



 _______________________________________________
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: Re: gcc and the phantom alloca()?
  • Next by Date: Re: How are we supposed to paste text in XCode?
  • Previous by thread: Re: gcc and the phantom alloca()?
  • Next by thread: Xcode's 'Find in Files' UI problems/questions
  • Index(es):
    • Date
    • Thread