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]
Other format: [Raw text]

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


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.


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