Compiling Nginx with GCC Optimization Flags

Joe Aston joe at
Mon Dec 1 23:49:29 MSK 2008

Has anyone done any testing on the optimum GCC compiler flags for compiling

I usually use "-O3 -march=core2 -msse -mmmx -msse2 -msse3 -mfpmath=sse
-fomit-frame-pointer", but would it be worthwhile using "-funroll-loops" or
other options? Would "-O2" be better?

Has anyone compiled Nginx with the Intel C/C++ Compiler? If so, what
settings did you use?

Many thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list