-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Clemens Eisserer wrote: > 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.
- -Os uses the same optimizations as -O2 but takes size into account, so that should be even better for small caches. From my tests -Os is sligtly faster as -O2 since you need to load less from jffs2 (less zlib stuff). regards, Koen -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEUfAsMkyGM64RGpERAg4QAJ9foVR72/3hV/YGPOXHO24kEO/sFQCdFIBx nm4+tMzQSGRs/dNCVShAFF0= =DQOO -----END PGP SIGNATURE----- _______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers