_Bool: size, checking and optimizations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

Have been digging around for some time (both googling and checked the GCC-manual (4.1)), but could not find any answers to my questions:

1) Is the size really fixed to 1 byte? Have seen some conflicting statements on this. 2) Is there (or going to be) any options to check (for example) there is no other values other then 0/1 inserted to the boolean variable. Of course, _Bool can handle this by changing it to 1, but a option to check would be a great help making people trusting it. 3) Have heard people complaining that a 1 byte variable is more cpu-expensive then an int. Is it possible _Bool changes it size to int when optimizing for speed and "char" when for size? (Related to question #1).

Thanks for your time
Richard Knutsson

PS
Please Cc: me since I am not subscribing.
DS


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux