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
  • Now, before you attack the source,

    No need to --- the book, as quoted, is correct. I see a need to attack your interpretation of it on two counts, though:

    1) you claimed "the C standard clearly states", when you apparently don't actually have a copy of that document, so you cannot actually know what it states and what it doesn't.

    2) your source said "same as [...], except", and you condensed that into a claim that the things were the same, changing the meaning rather drastically.

    I hope you apply logics a bit better than that in your daily work. As aggressively as you often state things as truth in this forum, you had better be able to back up your claims.

Reply
  • Now, before you attack the source,

    No need to --- the book, as quoted, is correct. I see a need to attack your interpretation of it on two counts, though:

    1) you claimed "the C standard clearly states", when you apparently don't actually have a copy of that document, so you cannot actually know what it states and what it doesn't.

    2) your source said "same as [...], except", and you condensed that into a claim that the things were the same, changing the meaning rather drastically.

    I hope you apply logics a bit better than that in your daily work. As aggressively as you often state things as truth in this forum, you had better be able to back up your claims.

Children
No data