• 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: Significant number of chars in identifier
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Significant number of chars in identifier


  • Subject: Re: Significant number of chars in identifier
  • From: Mark Bessey <email@hidden>
  • Date: Tue, 23 Aug 2005 12:42:57 -0700

On Aug 23, 2005, at 9:02 AM, Lawrence Gold wrote:
On Aug 23, 2005, at 9:45 AM, Tommy Nordgren wrote:

What is the significant number of characters in idetifiers in gcc and g++?
I'm interested in doing common subexpression elimination on mathematical
expressions in Mathematica syntax, and generate C/C++ code from them.
However some ways to generate unique identifiers can lead to very long names

From the GCC 4.0.1 manual:

The number of significant initial characters in an identifier (C90 6.1.2, C90 and C99 5.2.4.1, C99 6.4.2).
For internal names, all characters are significant. For external names, the number of significant characters are defined by the linker; for almost all targets, all characters are significant.

I suppose looking in the manual was the smart thing to do, but I just verified quickly that identifiers up to (at least) 140,000 characters in length seem to work with no problems. The code sure does look funny, though.


Truly enormous variable names aren't well formatted in the Xcode GUI debugger, but I didn't see any actual misbehavior. And I suppose it goes without saying that if you're using a lot of variables with multi-thousand-character names, your debug executables will be a bit larger, too.

-Mark



_______________________________________________
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: 
 >Significant number of chars in identifier (From: Tommy Nordgren <email@hidden>)
 >Re: Significant number of chars in identifier (From: Lawrence Gold <email@hidden>)

  • Prev by Date: Using Cocoa Classes With Java Ant In Xcode
  • Next by Date: nib resources
  • Previous by thread: Re: Significant number of chars in identifier
  • Next by thread: Using Cocoa Classes With Java Ant In Xcode
  • Index(es):
    • Date
    • Thread