This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Optimizations for the MIPS target
- From: Joe Buck <Joe dot Buck at synopsys dot COM>
- To: Nikolaos Kavvadias <nkavv at physics dot auth dot gr>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 4 May 2006 08:56:42 -0700
- Subject: Re: Optimizations for the MIPS target
- References: <445A0223.2060307@physics.auth.gr>
On Thu, May 04, 2006 at 04:31:15PM +0300, Nikolaos Kavvadias wrote:
> My question here is: culdn't "-Os" optimization option force .align 0
> alignment? Is there any way to use the minimal data memory
> requirements for global symbols possible?
While it could, I hope that it does not go so far as to make the
reads unaligned (on processors that allow this). -Os currently
optimizes well for speed as well as for space, and there's a substantial
performance penalty for unaligned reads and writes in many cases.