- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Followup to: https://software.intel.com/en-us/forums/intel-c-compiler/topic/736065
This question was answered by providing a link to the compiler reference, thanks.
But actually, I am looking for a language reference, not a compiler reference, and I originally posted because I haven't been able to find a language reference in the compiler reference. Nor have I been able to find the identifier length limits.
Thanks,
Kevin
- Tags:
- CC++
- Development Tools
- Intel® C++ Compiler
- Intel® Parallel Studio XE
- Intel® System Studio
- Optimization
- Parallel Computing
- Vectorization
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
http://en.cppreference.com/w/c/language/identifier
C:
Translation limits
Even though there is no specific limit on the length of identifiers, early compilers had limits on the number of significant initial characters in identifiers and the linkers imposed stricter limits on the names with external linkage. C requires that at least the following limits are supported by any standard-compliant implementation:
|
(until C99) |
|
And
http://en.cppreference.com/w/cpp/language/identifiers
C++
An identifier is an arbitrarily long sequence of digits, underscores, lowercase and uppercase Latin letters, and most Unicode characters (see below for details). A valid identifier must begin with a non-digit character (Latin letter, underscore, or Unicode non-digit character). Identifiers are case-sensitive (lowercase and uppercase letters are distinct), and every character is significant
IOW length not defined (at least in that reference).
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jim,
Thanks! So you're saying specifically that the Intel compiler itself has no explicit limits, even for C identifiers. That's what I suspected, based on its interest in being compatible with other compilers (especially gcc in this respect) and its code sharing with C++. Is this fact documented anywhere? This kind of information is highly useful for those wishing to write code with this compiler in mind, given the variances amongst compilers.
Yes, I am aware of the ANSI minima; I am just surveying active compilers and linkers to see what the effective minima are.
Is there a C language reference for the compiler, other than references to the ANSI standards?
Thanks,
Kevin

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page