This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Data Type sizes question


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]