You can see that your program spend the most time for the logarithmic calculation, followed by the power caculation.
In my opinion your problem is that you did not use fast-math, as far as i know vc uses a math lib with similar optimizations by default.
so as Ishwar Rattan mentioned, if speed is important and vc6 is faster that use vc6.
greets Georg
Am 21.04.2005 08:17:12 schrieb(en) CyberSnoopy:
--snip--I've tried gprof this is the result Flat profile:
Each sample counts as 0.01 seconds.(what does this mean?) % cumulative self self total time seconds seconds calls s/call s/call name 32.23 7.56 7.56 __ieee754_log
0.02 23.45 0.01--snip--
I'm wondering is the total time as much as 23.46 seconds? I'm comfused...
Attachment:
pgpEMXMSs22Zy.pgp
Description: PGP signature