begin  quote
On Fri, 7 Nov 2003 06:11:04 +0100
"Meka[ni]" <[EMAIL PROTECTED]> wrote:

>       Someone here said that -O2 and one more flag is much better than
> -O3. The only difference between -O2 and -O3 is that -O3 = -O2 +
> -finline-functions +-frename-registers. Which of those two flags makes
> -O2 become better than -O3. I don't know how to use time when I don't
> have a program to check it. I would be great to have something like
> mozilla compiled in both ways and see what is faster, but my poor CPU
> is only Celeron(Mendocino) 300A, and it's a lot faster for me to ask
> on the list for advice then to compile mozilla only once (not to
> mention another compile process). Thanx :o)
> 


Well, this is an interesting issue and very varialbe one. Put it like
this:
In small applications (gzip, bzip2 ) that easily fit RAM and don't have
many different functions, the function inline will make a boost, this is
because the flow is lighter and simpler.

In larger applications, povray , gnuchess, mozilla, openoffice,
tuxracer, well, just about any non-small one, the function inlining will
just pollute the L2 and L3 cache, making the applications slower.

//Spider

-- 
begin  .signature
This is a .signature virus! Please copy me into your .signature!
See Microsoft KB Article Q265230 for more information.
end

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to