Jump table alignment (2.95.2 versus 3.2.3)
Richard Russell
richard@rtrussell.co.uk
Thu Dec 30 18:32:00 GMT 2004
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/
More information about the Gcc-help
mailing list