This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
help: about enum
- From: "Gaurav Gautam, Noida" <gauravga at noida dot hcltech dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Tue, 30 Aug 2005 09:55:28 +0530
- Subject: 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