On Wed, Dec 11, 2002 at 07:40:35AM +0000, Michael Sternberg wrote:
> 
> I'm wondering why sizeof(bool) is 1 byte in Intel platform and 4 bytes on
> PPC ? 

My guess is alignment. 

> Is it depends on version of gcc (2.95.3 on Intel, 2.96 on PPC) ?

Certainly might be, although it's more likely to depend on the plaftom
itself. 

> Can I somehow (some compiler flag) make them of same size ?

I'm too lazy to check, but if it's possible, 'info gcc' will have the
skinny. 

FYI, http://std.dkuug.dk/JTC1/SC22/WG14/www/docs/n843.htm only
specifies that (6.2.5 Types):

 [#2] An object declared as type _Bool  is  large  enough  to store
      the values 0 and 1.

Your friendly language lawyer wannabe, 
Muli. 


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to