How can I count number of FLOPS executed by a program?

Hugh Fader hugh at slee01.srl.ford.com
Tue Mar 12 23:58:07 AEST 1991


I'm trying to figure out how many floating point operations
one of our main applications is executing. I am trying to
avoid doing this by hand. The prof utility doesn't do the
trick because:

1. It only seems to be able to count subroutine calls, not
   inline fpp calls. Sun 4 only supports inline.

2. Even if I did have a floating point library, you need to
   compuile the subroutines with the -p option in order to
   get a count of the number of calls.

Does anyone have any suggestions as to how to do this?
Details: Sun Sparcstation, SunOS 4.1, C language.

Thanks in advance.

--
Hugh Fader
hugh at slee01.srl.ford.com



More information about the Comp.unix.misc mailing list