This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Jump table alignment (2.95.2 versus 3.2.3)
- From: Richard Russell <richard at rtrussell dot co dot uk>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 30 Dec 2004 18:32:19 +0000
- Subject: Jump table alignment (2.95.2 versus 3.2.3)
Hello,
I have recently 'upgraded' to 3.2.3 from 2.95.2 (MinGW version)
and I am trying to get it to produce code no larger than its
predecessor. Even with the -Os option it is still generating
object modules somewhat larger than before, and close examination
shows that this is because jump table (dispatch table) entries
are now aligned on 16-byte boundaries rather than 4-bytes with
2.95.2. With large tables this wastes quite a lot of space.
Is there an option which will force gcc 3.2.3 to use 4-byte or
8-byte alignment for jump table entries ?
Richard.
http://www.rtrussell.co.uk/