This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Profiling and optimization


Profiling for size <=> speed optimzation:

Note, that you do not need the average call frequency for the decision of
optimzation for size or speed, but something like the burst rate:

		calls
	freq =  -----					[Hz]
		calls
                 Sum   timebetweencalls
		 i=1                 

		   
		     1   calls
	burstrate =-----  Sum   1/timebetweencalls	[Hz]
                   calls  i=1
                    


For a equidistant time distant both have the same value.
For short bursts they are different.

-- 
Frank Klemm


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]