Thank you! I would still appreciate hearing anyone else&#39;s results also.<br><br><div class="gmail_quote">On Tue, Dec 2, 2008 at 9:21 AM, Igor Sysoev <span dir="ltr">&lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Mon, Dec 01, 2008 at 08:49:29PM +0000, Joe Aston wrote:<br>
<br>
&gt; Has anyone done any testing on the optimum GCC compiler flags for compiling<br>
&gt; Nginx?<br>
&gt;<br>
&gt; I usually use &quot;-O3 -march=core2 -msse -mmmx -msse2 -msse3 -mfpmath=sse<br>
&gt; -fomit-frame-pointer&quot;, but would it be worthwhile using &quot;-funroll-loops&quot; or<br>
&gt; other options? Would &quot;-O2&quot; be better?<br>
<br>
</div>As it was said there is no noticeable difference between -O and -O2<br>
for nginx. I believe -funroll-loops is useless for nginx: nginx has no<br>
long loops to unroll. For the same reason mmx/sse is useless too:<br>
I saw that Intel C compiler uses them in some loops, but all of them<br>
are short and run once on re/configuration phase only.<br>
<br>
-fomit-frame-pointer is single usefull option, but I do not use it usually<br>
as it makes almost impossible to investigate core dumps.<br>
<div class="Ih2E3d"><br>
&gt; Has anyone compiled Nginx with the Intel C/C++ Compiler? If so, what<br>
&gt; settings did you use?<br>
<br>
</div>nginx has support for Intel C/C++ Compiler.<br>
It runs with &quot;-O -Ob2 -ip&quot; options.<br>
<font color="#888888"><br>
<br>
--<br>
Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
</font></blockquote></div><br>