Christian Christmann wrote:

> Hi,
>
> my projects are written in C++ and I use g++ to compile them.
>
> What compiler optimization level (-Ox) should be used for the
> generation of the final binaries? I assume that the highest optimization
> level (-O3) is the right choice since it deploys most of the build-in
> compiler optimizations that reduce code size and average program
> execution time. Or are you of a different opinion?
>
> Regards,
> Chris

I guess it depends. If you want optimal size rather than speed (perhaps
the speed is adequate anyway) then -Os is your choice, plus perhaps
various -f settings for the inlining.

_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to