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
  • On "modern" compilers, this will cause a warning every time you call a string library function, this is because they are defined using "Just plain char" (i.e. int strlen(char *str) ). What do you do with these warnings?

    Nothing, I do not use "string library functions". I am a 'speed freak' because of therequirements of what I produce, and those two are mutually exclusive.

    Erik

Reply
  • On "modern" compilers, this will cause a warning every time you call a string library function, this is because they are defined using "Just plain char" (i.e. int strlen(char *str) ). What do you do with these warnings?

    Nothing, I do not use "string library functions". I am a 'speed freak' because of therequirements of what I produce, and those two are mutually exclusive.

    Erik

Children