This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Data Type sizes question
- From: Fergus Henderson <fjh at cs dot mu dot OZ dot AU>
- To: John Lu <jlu at dts0 dot lsil dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 29 Oct 2002 14:05:03 +1100
- Subject: Re: Data Type sizes question
- References: <200210282133.PAA15559@dts0>
On 28-Oct-2002, John Lu <jlu@lsil.com> wrote:
> I'm working on an architecture that supports 16-bit,
> 32-bit, and 40-bit data. I am trying to support the following data
> types on the archtiecture:
>
> int -> QImode, 16-bits
> long -> HImode, 32-bits
> long long -> SImode, 40-bits ??????
This is a bad idea. The ISO C standard guarantees that "long long"
will be at least 64 bits.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.