This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
alignment
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Subject: alignment
- From: Andrew Morton <andrewm at uow dot edu dot au>
- Date: Sat, 15 Jul 2000 22:51:43 +1000
On x86, both gcc 2.7.2.3 and "2.96 19991116" are inserting `.align 4'
ops after `jmp' instructions and also prior to `__asm__ __volatile__'.
This causes a ~5% code size increase in the one Linux kernel file I
looked at.
Why does the compiler do this, and what would be the downside of turning
it off?
Thanks.