Discussion Forum

Case sensitivity

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Richard Roebuck
Posted
17-May-2001 19:29 GMT
Toolset
C166
New! Case sensitivity
Probably something of a trivial question for those who know:

Can anyone out there confirm for me whether ANSI C is meant to be a
case sensitive, or insensitive languge; and whether the Keil compiler
complies with this.


Yours gratefully,


Richard Roebuck.
P.S. Am I the only one who finds that the tick box to send 'an e-mail
message when someone posts to this thread' option doesn't work?
Do I need to set a specific option on the browser to enable this?
Read-Only
Author
Andrew Neil
Posted
18-May-2001 09:17 GMT
Toolset
C166
New! RE: Case sensitivity
'C' is mose definitely a case-sensitive language.

BUT many linkers are not.
In Keil's case, the Linker converts everything to UPPERCASE, and then uses that - thus it is insensitive to the original case of identifiers in your source files (there might be an option to control this? - check the manual)

The upshot is that you can define a variable 'i' in one C file, and reference an extern I in another, and the Linker will consider them to be the same object - thus giving you the impression that C is not being case-sensitive!

"Am I the only one who finds that the tick box to send 'an e-mail message when someone posts to this thread' option doesn't work?"

Well, it used to not work, then they fixed it (and added the bit in red about "... you will receive an e-mail...") but I've heard recently that it's gone downhill again.
Dunno if it's actually not working, or just that it takes ages (like weeks!) to get around to sending the message! :-0

Read-Only
Author
Jon Ward
Posted
21-May-2001 07:19 GMT
Toolset
C166
New! RE: Case sensitivity
In Keil's case, the Linker converts everything to UPPERCASE, and then uses that - thus it is insensitive to the original case of identifiers in your source files (there might be an option to control this? - check the manual)

Actually, this is not accurate. The OMF51 specification (which is the spec for the OBJ file format) specifies that ALL NAMES in the object file will use uppercase characters. Ergo, the assembler, compiler, and linker ALL product OMF51 compatible files (with uppercase names).

Jon

P.S. I'll check on the e-mail messages. We're updating some servers and this may be temporarily out of service.

Next Thread | Thread List | Previous Thread Start a Thread | Settings