Re: Ability to disable 32-byte alignment of bss/data symbols with size > 32 bytes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yuly Finkelberg <yuly.finkelberg@xxxxxxxxx> writes:

> If I pass "-Os", the alignments drop to 4 bytes (as expected);
> "__attribute__ ((aligned(4))" also works.  However, I'd very much like
> a way to control this behavior globally without getting everything
> else that "-Os" comes with.  A "-f" switch perhaps?  I was able to
> find http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30004, which appears
> to have relaxed the alignment under "-Os" specifically.

For the i386 gcc will align large data objects to the maximum alignment.
This is so that aligned loads can be used with the SSE registers.
Unfortunately there is no way to request a smaller alignmnt, other than
the ones you mention.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux