Gaurav Gautam, Noida wrote:
> I want to know, how enums are handled in gcc. How do we map an enum value to
> the corresponding integer size.
Look at start_enum and finish_enum in c-decl.c.
> What does the option -fshort-enums does. Plz explain me in detail.
Look at the code in start_num and fin
On Aug 27, 2005, at 1:54 AM, Gaurav Gautam, Noida wrote:
I WANT TO KNOW
Please, stop screaming. We can hear you. This is the wrong list for
such questions. Please go try gcc-help.
Hi,
I am sorry, I wrote incorrectly in the earlier mail. That
"I could see the difference in the size of enums when I toggle the option. If
the option is not given, then all the enum occupy the same 4 bytes irrespective
of their value and 2147483647 is the maximum value that can fit in integer.