Compiling Nginx with GCC Optimization Flags

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


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

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: <http://nginx.org/pipermail/nginx/attachments/20081201/3f08c2fa/attachment.html>


More information about the nginx mailing list