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]

Re: sizeof bool > sizeof int ?!?


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)                 |



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