[TUHS] v7 K&R C
Steve Nickolas
usotsuki at buric.co
Sat May 16 18:30:13 AEST 2020
On Sat, 16 May 2020, Peter Jeremy wrote:
> On 2020-May-15 16:56:42 -0400, Steve Nickolas <usotsuki at buric.co> wrote:
>> Isn't it nonstandard (although I am aware of some compilers that do it) to
>> default the type of char to unsigned?
>
> The standard allows "char" to be either signed or unsigned. The ARM ABI
> defines char as unsigned.
>
> I recall that Lattice C on the M68K allowed either signed or unsigned char
> via a flag. Setting it to "unsigned" generally produced faster code on
> my Amiga, though some code assumed signed chars and broke.
Borland did the same.
CC65, I think, defaults to unsigned char, but it's missing some other
features. It is, however, the closest (to my knowledge) that C on the
6502 gets to ANSI starndard.
-uso.
More information about the TUHS
mailing list