This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Compile char as an unsigned char

Hello,

Can anyone tell me how to instruct Keil to compile char's as unsigned char's by default?

I know that there are some help topics on this issue, but they seem to be giving a precompiler directive to tell the compiler to always compile char's as signed char's....

Thanks!
Eric

Parents
  • C90 says the same thing, but in many more words. So now quoting C90, 6.1.2.5 "Types", paragraph 2:

    Just for the record: all those "many more words" are still present in C99 (section 6.2.5 now), too. And I think C90 had wording equivalent to 6.2.5 paragraph 15. I chose not to quote the former because the latter gets to the point quicker.

Reply
  • C90 says the same thing, but in many more words. So now quoting C90, 6.1.2.5 "Types", paragraph 2:

    Just for the record: all those "many more words" are still present in C99 (section 6.2.5 now), too. And I think C90 had wording equivalent to 6.2.5 paragraph 15. I chose not to quote the former because the latter gets to the point quicker.

Children
  • "Just for the record: all those "many more words" are still present in C99 (section 6.2.5 now), too."

    To be precise, that's paragraph 3 of the C99 section.

    "And I think C90 had wording equivalent to 6.2.5 paragraph 15. I chose not to quote the former because the latter gets to the point quicker."

    Only for the first sentence. The second sentence was added in C99.

    My referencing C90 is so folks don't throw back some argument about Keil's tools not being C99 compliant. For this particular C issue, C99 or C90, nothing has changed.