Mark Stokes wrote:
What is the max unique variable name length in mspgcc?
I mean, if I declared two variables:
very_long_variable
And
very_long_variable_two
Will they be different variables. I know Borland's old compiler was
something like 15 characters.
collected from the gcc.gnu.org mauals:
"The preprocessor treats all characters as significant. The C standard
requires only that the first 63 be significant."
http://gcc.gnu.org/onlinedocs/gcc/Identifiers-implementation.html says
"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."
the elf object file format that mspgcc uses has no limit i know of (ok
it's limited by a 32 bit index or something like that, implementation
dependant, but probably more than 1000 characters ;-)
i have no hint on how long symbol names for ld can be. but i would
expect thats more than 31, probably only limited by the used object file
format.
chris