Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Ed's "indirect addressing"

Author: Andreas Guettinger

Date: 12:51:12 01/30/03

Go up one level in this thread


On January 30, 2003 at 08:30:51, Russell Reagan wrote:

>On January 30, 2003 at 02:00:57, Dann Corbit wrote:
>
>>On January 30, 2003 at 01:34:19, Russell Reagan wrote:
>>
>>>On January 30, 2003 at 00:05:35, Dann Corbit wrote:
>>>
>>>>Try the following with your compiler inside of your profiler:
>>>
>>>With MSVC 6 Pro...
>>>
>>>        Func          Func+Child           Hit
>>>        Time   %         Time      %      Count  Function
>>>---------------------------------------------------------
>>>    3819.452  34.0     3819.452  34.0  1000000 _swi (test.obj)
>>>    3718.852  33.1     3718.852  33.1  1000000 _poi (test.obj)
>>>    3710.973  33.0     3710.973  33.0  1000000 _arr (test.obj)
>>>       0.000   0.0    11213.196  99.7        1 _main (test.obj)
>>
>>Interesting.  MS VC++ usually has huge differences for the different methods.
>>
>>What optimization settings did you use?
>
>I set the active configuration to Release, and enabled profiling. When I compile
>for Pentium Pro, I get:
>
>        Func          Func+Child           Hit
>        Time   %         Time      %      Count  Function
>---------------------------------------------------------
>    3806.877  33.9     3806.877  33.9  1000000 _swi (test.obj)
>    3714.811  33.1     3714.811  33.1  1000000 _poi (test.obj)
>    3702.155  33.0     3702.155  33.0  1000000 _arr (test.obj)
>       0.000   0.0    11217.521  99.9        1 _main (test.obj)


I tried this on gcc with gcc -O2 -pg -Wall hallo.c, and the results of gprof:


                                  called/total       parents
index  %time    self descendents  called+self    name    	index
                                  called/total       children

                0.00        0.00       1/1           __start (788)
[1]    100.0    0.01        1.24       1         _main [1]
                0.57        0.00 1000000/1000000     _swi [2]
                0.42        0.00 1000000/1000000     _arr [3]
                0.25        0.00 1000000/1000000     _poi [4]

-----------------------------------------------

                0.57        0.00 1000000/1000000     _main [1]
[2]     45.6    0.57        0.00 1000000         _swi [2]

-----------------------------------------------

                0.42        0.00 1000000/1000000     _main [1]
[3]     33.6    0.42        0.00 1000000         _arr [3]

-----------------------------------------------

                0.25        0.00 1000000/1000000     _main [1]
[4]     20.0    0.25        0.00 1000000         _poi [4]

-----------------------------------------------

regards
Andreas



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.