How to detect whether we're inside of a loop??

Joe Buck jbuck@synopsys.com
Thu Apr 10 01:25:00 GMT 2003


On Wed, Apr 09, 2003 at 04:30:00PM -0700, Geoff Keating wrote:
> No, not really.  For instance, a little-known fact is that the average
> number of iterations for a loop is about 1.5; someone did some
> analysis on some huge collection of programs and this is the number
> they came up with.  So it's important to know *which* loops to look
> at.

Well, this depends: the number is substantially higher for scientific
codes, and is a good deal higher (for example) in SPECfp (for various
years) than SPECint.



More information about the Gcc mailing list