This is the mail archive of the gcc-help@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]
Other format: [Raw text]

help: about enum



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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]