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

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-06-18 11:18:19


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.

A better idea would probably be to introduce "far" pointers with 24 bits. This
would also help as a first step for 65816 code.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
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:18:26 CEST