Cool, thanks
-Mark

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Chris
Liechti
Sent: Friday, June 13, 2003 4:04 PM
To: [email protected]
Subject: Re: [Mspgcc-users] Max variable name length


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



-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users


Reply via email to