signed is undefined and has been since 1992 (in GCC)

Olivier Galibert galibert@pobox.com
Tue Jun 28 14:42:00 GMT 2005


On Tue, Jun 28, 2005 at 10:30:39PM +0800, Jonathan Wilson wrote:
> >- sizeof(int) == 4, sizeof(long long) == 8
> I swear 16 bit compilers have sizeof(int) = 2 with sizeof(long) = 4

Yes, and some computers have 9-bit bytes too.  Tried running linux,
gnome, kde, gimp, cdrecord, mame, qemu... on them lately?

I kinda doubt gcc can generate 16-bit code at that point in any case.

  OG.



More information about the Gcc mailing list