Linux/Compiler Options: Difference between revisions

Jump to navigation Jump to search
add note about using the chart below
(add gcc 4.1.2 and 4.3 notes)
(add note about using the chart below)
Line 6: Line 6:


Different parts of Mozilla run faster at different optimization levels.  For example, cairo, pixman and sqlite are compiled at -O2 because they are fastest at that level while the JS engine is fastest at -Os. [https://bugzilla.mozilla.org/show_bug.cgi?id=409803#c9]  If you want to use --enable-optimize, don't add extra optimization flags there.  That's a global setting that sets optimization levels [http://lxr.mozilla.org/seamonkey/search?string=MODULE_OPTIMIZE_FLAGS throughout the source tree].  Instead pass non-optimization flags that you care about via CFLAGS and CXXFLAGS during the build.
Different parts of Mozilla run faster at different optimization levels.  For example, cairo, pixman and sqlite are compiled at -O2 because they are fastest at that level while the JS engine is fastest at -Os. [https://bugzilla.mozilla.org/show_bug.cgi?id=409803#c9]  If you want to use --enable-optimize, don't add extra optimization flags there.  That's a global setting that sets optimization levels [http://lxr.mozilla.org/seamonkey/search?string=MODULE_OPTIMIZE_FLAGS throughout the source tree].  Instead pass non-optimization flags that you care about via CFLAGS and CXXFLAGS during the build.
'''Please use the right optimization flags for your compiler.'''
Please see the chart below for information on what compiler flags you should be using.  It depends on what compiler you have.


=Compilers=
=Compilers=
canmove, Confirmed users
1,577

edits

Navigation menu