This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

RE: [PATCH, FT32] initial support


On Wed, 11 Feb 2015, James Bowman wrote:

> > > +@table @gcctabopt
> > > +
> > > +@item -mspace
> > > +@opindex mspace
> > > +Enable code-size optimizations.
> > > +Some of these optimizations incur a minor performance penalty.
> > 
> > We already have -Os, so why is an architecture-specific option for this 
> > needed?
> 
> Code compiled with -mspace is somewhat slower than code without.
> So we typically build *all* code with -Os, with everything
> non-critical also compiled -mspace.

The typical way of doing that would be to compile the critical code with 
-O2, everything else with -Os.  It's expected -Os may produce slower code 
than -O2.

-- 
Joseph S. Myers
joseph@codesourcery.com


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