Profiling and optimization

Frank Klemm pfk@fuchs.offl.uni-jena.de
Sat Sep 8 17:13:00 GMT 2001


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



More information about the Gcc mailing list