[maemo-developers] [maemo-developers] gcc options for smallest size, best speed, etc
From: Koen Kooi koen at dominion.kabel.utwente.nlDate: Fri Apr 28 13:36:28 EEST 2006
- Previous message: [maemo-developers] gcc options for smallest size, best speed, etc
- Next message: [maemo-developers] gcc options for smallest size, best speed, etc
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
-----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-----
- Previous message: [maemo-developers] gcc options for smallest size, best speed, etc
- Next message: [maemo-developers] gcc options for smallest size, best speed, etc
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]