sizeof bool > sizeof int ?!?
Rask Ingemann Lambertsen
rask@kampsax.k-net.dk
Sun Jul 5 02:58:00 GMT 1998
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?
Regards,
/ïïïïïïïïïïïïïïïïïïïïïïïïïïïïïïïïTïïïïïïïïïïïïïïïïïïïïïïïïïïïïïïïïïïïïïïï\
| Rask Ingemann Lambertsen | E-mail: mailto:rask@kampsax.k-net.dk |
| Registered Phase5 developer | WWW: http://www.gbar.dtu.dk/~c948374/ |
| A4000, 775 kkeys/s (RC5-64) | "ThrustMe" on XPilot, ARCnet and IRC |
| Shakespeare, C Version: (0x2B | ~0x2B) |
More information about the Gcc
mailing list