help: about enum

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

 




Hi,


I want to know, how enums are handled in gcc. How do we map an enum value to the corresponding integer size.

What does the option -fshort-enums does. Plz explain me in detail.

Given an enum value, how do we calculate or determine that what size should the enum occupy.

Does all the enum have a same size of 4 bytes or does it varies depending on the initializing value?


Regards
Gaurav


[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