Rockbox mail archiveSubject: Re: Use -Os on ARM? (was: Re: Proposal to update GCC for ARM)
Re: Use -Os on ARM? (was: Re: Proposal to update GCC for ARM)
From: Rafaël Carré <rafael.carre_at_gmail.com>
Date: Sat, 29 May 2010 14:24:58 +0200
On Sat, 29 May 2010 11:30:24 +0200
Tobias Diedrich <ranma+rockbox_at_tdiedrich.de> wrote:
> Speaking of gcc and arm, some archs use -Os by default, but arm is
> using only -O. Some arm targets (e.g. AMS C200v2) with very little
> ram could benefit quite a bit from using -Os and so far it's working
> fine for me with rockbox gcc 4.0.3, so I would propose making -Os
> default for at least the AMS low memory arm targets.
I would say go for it, if -Os cause bugs not present with -O we will
have time to find them.
And if we switch to a new gcc, perhaps the reason for using -O and not
-Os will no longer be valid.
-- Rafaël Carré