[comp.unix.misc] How can I count number of FLOPS executed by a program?

hugh@slee01.srl.ford.com (Hugh Fader) (03/12/91)

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@slee01.srl.ford.com