Try it and let us know...  Can you say Guinea Pig?  I know you can say
Guinea Pig.  I like it when you say Guinea Pig. (With apologies to Mr.
Rodgers)

According to the doc (you did look this up, right?)

http://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_2.html#SEC10

-O2
Optimize even more. GCC performs nearly all supported optimizations that do
not involve a space-speed tradeoff. The compiler does not perform loop
unrolling or function inlining when you specify `-O2'. As compared to `-O',
this option increases both compilation time and the performance of the
generated code.
`-O2' turns on all optional optimizations except for loop unrolling,
function inlining, and strict aliasing optimizations. It also turns on the
`-fforce-mem' option on all machines and frame pointer elimination on
machines where doing so does not interfere with debugging.


-O3
Optimize yet more. `-O3' turns on all optimizations specified by `-O2' and
also turns on the `inline-functions' option.

I don't see any reason why is *shouldn't* work...

Homework:

   * How much longer does it take to compile?
       (make clean && ./configure ... && time make on my Linux box)

   * What was the CPU utilization when compiled with -O2?  Compute the
improvement.

   * What are the differences in executable and .so sizes??

-----Burton

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Horta, Benny
Sent: Friday, September 20, 2002 9:53 AM
To: '[EMAIL PROTECTED]'
Subject: [Ntop-dev] compiled NTOP using -O3



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Any issues running ntop 2.1.50 compiled with the -O3 flags, I
recompiled and it seems to work okay cpu is around 40-45 percent on a
65megabit backbone. PC is a p4 1.5ghz but only has 256mb of ram
though


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBPYs2Xa1GcDuKcUnvEQLQFACgg9kTRtBAotVqaXg7Utym2LYXkykAn1qv
OarIhb5jRsGy6zzKKhuVuXSo
=Ji1+
-----END PGP SIGNATURE-----

_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop-dev

Reply via email to