On Sun, Jul 05, 1998 at 11:55:31AM +0200, Rask Ingemann Lambertsen wrote: > Den 03-Jul-98 15:15:06 skrev Gerald Pfeifer følgende om "sizeof bool > sizeof int ?!?": > > > with egcs-2.90.29 980515 (egcs-1.0.3 release) on alphaev56-dec-osf4.0d > > and -- surprise, surprise! -- sizeof bool > sizeof int !?! > > > bool = 8 > > short = 2 > > int = 4 > > long = 8 > > > I find it _very_ hard calling this a feature! > > > Even if it may be standards compliant, this is most surprising for > > 95%[1] of all developers. > > Possibly, but does it have any impact on the code? Apart form wasting huge > amounts of memory, that is? IIRC, the AXP series handle 64bit words faster than 32bit words due to register width and/or instruction set. Certainly code will run faster on most 32bit architectures using int's (32 bits) rather than char's (8 bits), so it makes sense to use, e.g. typedef int bool; my £0.005 =)O| Cheers, -- -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia iQCVAwUBNaCKZaEk4wryQAQBAQGqDQP+O3Pz3DmcLR7N5xeNxf7jHrORzfnOqwD/ L1wSu25ViBCG+4+aqyzu8e9tAmdFZmvUec0jPPCtN+l1IbTPQ75X4FQW11SQM1U0 YwonoRKWYMN570os6Bis+cxqL76rwTTb7beR6ImfREioXof7I2X+log3IAi5wwTy 5bF90Ooy5Fo= =njyg -----END PGP SIGNATURE-----