avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] 24 bit Integer


From: Clint Lawrence
Subject: Re: [avr-gcc-list] 24 bit Integer
Date: Wed, 30 Jul 2008 16:15:20 +0100

2008/7/14 Weddington, Eric <address@hidden>:
> A 24-bit integer is not supported by the C language. In theory, support
> could be added to GCC, but then it would be considered an extension to
> the C language. And it would also be difficult and/or time-consuming to
> add to GCC.

The C standard doesn't dictate the size of any integer type, except that char
must be large enough to hold the environments standard character set and
the size of any larger types is ordered as you'd expect.
char <= short <= int <= long
int is typically the natural word size for the architecture, but often on 8 bit
micros it will be larger (since char typically provides an 8 bit int anyway.)

Cheers,
Clint




reply via email to

[Prev in Thread] Current Thread [Next in Thread]