Compiling Nginx with GCC Optimization Flags

191919 191919 at gmail.com
Tue Dec 2 06:43:29 MSK 2008


IMHO, nginx default optimizing option (-O) is enough for most cases. If you
don't have a CPU-stressing module, -O and -O9 make no visible difference.

2008/12/2 Joe Aston <joe at joeaston.com>

> 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/20081202/f361c68c/attachment.html>


More information about the nginx mailing list