Re: OS X compiler flags
Boris Zbarsky <[email protected]>
| Newsgroups | gmane.comp.mozilla.performance |
|---|---|
| Message-ID | <[email protected]> |
sayrer wrote: > While reading Apple documentation, I noticed that gcc has an -Os > option that performs most of the -O2 optimizations, leaves out those > that increase code size, and performs additional code size > optimizations. Also, Apple documentation said the -dead_strip linker > flag we use should be combined with -gfull for maximum effectiveness. > > Should we try the "-Os -gfull" flags on tinderbox? So right now on Mac we seem to be doing (for the nightly builds): ac_add_options --enable-optimize="-O2 -g" With gcc on Linux, we are doing: ac_add_options --enable-optimize="-Os -freorder-blocks -fno-reorder-functions -gstabs+" based on some performance testing way back when. I agree that it would make some sense to at least try the same thing on Mac. -Boris