This is the mail archive of the
mailing list for the GCC project.
Size of en um
- From: Alexandre Almeida <meta dot lx at hotmail dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Sun, 5 Feb 2012 14:29:20 -0200
- Subject: Size of en um
What do you think about making enum types have only the size needed for the number of constants held?
If an enum type has 256 constants or less, for example, it needs only one byte. If it has between 257 and 65536 constants, in the other hand, it needs two bytes.