For Programmers: Free Programming Magazines  


Home > Archive > Compilers > May 2005 > Loop profilers on various platforms









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Loop profilers on various platforms
Rohini

2005-05-05, 4:00 pm

Hi All,

I wanted to know which all platforms have a loop profiling tool.
Any pointers on this will hellp me a lot.

I can immediately think of looptool on Solaris.

Thanks
Rohini
glen herrmannsfeldt

2005-05-05, 8:58 pm

Rohini wrote:

> I wanted to know which all platforms have a loop profiling tool.
> Any pointers on this will hellp me a lot.



What is loop profiling?

The IBM Fortran H compiler has a number of loop optimization, such as
moving invariant computations out of a loop, strength reduction, and
probably more. To do that, it has to find loops, which it does even
if they are made up of IF and GOTO, though DO loops are easier for
people to find.

If loop optimization is on (OPT=2), it had an option to print out a
listing indented based on the nesting level. Is that loop profiling?

Another that I knew from about the same time frame was called FETE
(Fortran Execution Time Estimator). It would take an input Fortran
program, add extra statements to it that would then be fed to the
compiler. The listing of the modified program would normally not be
printed. (I never saw one.) The modified program was them compiled
and executed. At the normal end of the original program, it would
then print out a source listing where each statement included the
number of times it was execute, an approximate time for executing that
statement, and one other, I believe the number of times a logical IF
expression was .TRUE.

FETE, then, could be used to find out where the program is spending
most of its time, usually due to loops, which could be called loop
profiling. I tried to find FETE a few years ago, but it might be that
it doesn't exist anymore.

-- glen

(comp.lang.fortran added)
Robert H

2005-05-14, 7:14 pm

Rohini wrote:
> Hi All,
>
> I wanted to know which all platforms have a loop profiling tool.
> Any pointers on this will hellp me a lot.


I echo the other comment/question - what exactly do you mean?

On HP-UX IA-64 you may want to look at Caliper, CxPerf (old), and
Prospect. These are interesting tools and, at least Caliper, has some
support for region profiliing, which you can use for loop profiling.

SGI Irix has SpeedShop - or however they call it today ;-)

x86 Window$, of course, has that Intel tool, as well as the
Rational/IBM tools, and probably a gadzillion more.

-- Robert

>
> I can immediately think of looptool on Solaris.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com