why does standard configure uses -Os?

Ryan Schmidt ryandesign at macports.org
Sun Dec 24 19:57:14 UTC 2017


On Dec 24, 2017, at 04:36, Chris Jones wrote:

> In general its not possible to say one setting will always perform better than another,  its very use case dependant. For instance if you really want maximum numerical performance then -O3 can give significant gains, as it turns on a number of optimisations that can really help, like auto vectorisation. But, you would not want that as the default as some use cases might not like it. Its fine to have a default, but i would suggest each port should use whatever upstream has decided is its best optimisation level.

Ports are free to override configure.optflags if desired.



More information about the macports-dev mailing list