Re: 24bit ints (was: [cc65] 24bit addresses)

Date view Thread view Subject view

From: Christian Groessler (chris_at_groessler.org)
Date: 2003-06-18 11:22:08


Hi,

On Wed, 18 Jun 2003, Ullrich von Bassewitz wrote:

>
> On Wed, Jun 18, 2003 at 11:13:14AM +0200, Christian Groessler wrote:
> > How about making long 24bit and inventing a long long if a 32 bit type is
> > needed?
> >
> > (I know, it's quick to ask, but probably quite a hassle to implement...:-)
>
> Not only this, but the standard requires the "long" data type to have at least
> 32 bits (in fact, it doesn't require 32 bit, but a certain range, and this
> range means that at least 32 bits are needed). Any compiler where longs are
> smaller wouldn't be standards compliant.

Ups, really?
I thought, the only thing the standard requires is
sizeof(char) <= sizeof(short) <= sizeof(int) <= sizeof(long).

Did I miss something?

regards,
chris


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-06-18 11:22:17 CEST