[geeks] stupid C question
Joshua D Boyd
jdboyd at cs.millersville.edu
Thu Feb 28 15:16:32 CST 2002
On Thu, Feb 28, 2002 at 03:27:17PM -0500, Greg A. Woods wrote:
> Complain to the designer of your processor, not about C or your compiler.
>
> If you don't like signed chars then you need to choose to use processors
> which make "unsigned char" the natural byte-sized integer for the
> compiler to use.
>
> Only some processors make this a choice that can be left up to the
> compiler (or the compiler user) without consequences....
So, what platforms do have unsigned chars native?
> Either that or make your code explicitly portable the hard way.... :-)
> (yes this business of signed and unsigned integers of all sizes is messy
> stuff in C)
And I haven't even touched bit ordering, which I think I'm going to need to
do when I port this to Irix. ;(
--
Joshua D. Boyd
More information about the geeks
mailing list