Re: help: about enum

2005-09-01 Thread James E Wilson
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

Re: help: about enum

2005-08-29 Thread Mike Stump
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.

RE: help: about enum

2005-08-27 Thread Gaurav Gautam, Noida
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.