Re: [squid-users] About Squid compilation gcc option

From: Ronald <sukker_ronald@dont-contact.us>
Date: Thu, 7 Jun 2001 10:18:20 +0100

Thanks Henrik !!!

Ronald

> Most GCC versions have problems at -O2 already so I have my doubts.. and
> -O3 is not guaranteed to give you faster code than -O2 (see your GCC
> manual).
>
> These GCC compilers are known to break Squid at -O2, but work fine if
> optimization is disabled:
>
> 2.7.2.3
> 2.95.1
> 2.95.2
> 2.95.3
>
>
> The performance gains from optimizing Squid with -O options are
> marginal. The performance issues are at other levels than the compiler
> can address.
>
>
> Regardless, you should keep the -g flag, or else you won't be able to
> diagnose any serious faults detected. -g does not impact performance
> other than a a few milliseconds longer startup time.
>
>
> Ronald wrote:
> >
> > Hi there,
> > About Squid compilation option.
> > Can i have the compilation option for squid2.4stable1 Linux 2.* like
> > this,
> > "gcc -O3 -Wall -I. -I../include -I../include..." instead of default
> > "gcc -g -O2 -Wall -I. -I../include -I../include...".
> >
> > Does this make any performance improvement in the production system
> > without pain?
> >
> > Thanks,
> > Ronald.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Received on Wed Jun 06 2001 - 22:45:21 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:00:31 MST