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

From: Clemens Eisserer linuxhippy at gmail.com
Date: Fri Apr 28 13:29:50 EEST 2006
Hi,

> I'd expect -g -Os to do all appropriate code size optimisations
> regardless of the architecture.
Well "-g" is a bit stupid in this scenario, since this means you tell
gcc to optimize for size but include debugging informations too.

I would recommend -O2 as the "best" option to use. It does a fine job
deciding wether a optimization is really worth the extra bloat, which
is especially important when it comes down to the small i-cache the
N770's processor has.

lg Clemens

More information about the maemo-developers mailing list