This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: alignment


Did you do any performance studies?  Did you enable the use of .p2align,
and did that change the situation?  On the code I have worked with, I
saw no reason for using __volatile__ other than to hide bugs, and that
may make a difference.

Tim Prince
----- Original Message -----
From: "Andrew Morton" <andrewm@uow.edu.au>
To: <gcc@gcc.gnu.org>
Sent: Saturday, July 15, 2000 5:51 AM
Subject: alignment


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]