[maemo-developers] [maemo-developers] gcc options for smallest size, best speed, etc

From: Murray Cumming murrayc at murrayc.com
Date: Thu Apr 27 13:22:43 EEST 2006
On Thu, 2006-04-27 at 11:03 +0200, Philippe Laporte wrote:
> Hi,
>     I would assume that this list be a top source for the following 
> question: what are the compile options for ARM for gcc for the smallest
> possible size, etc.
> For both smallest size, and best speed, seperately of course.

I'd expect -g -Os to do all appropriate code size optimisations
regardless of the architecture.

I've noticed that, for C++, you can give -g -Os a lot of extra help if
you can use -fno-exceptions too.

Murray Cumming
murrayc at murrayc.com

More information about the maemo-developers mailing list