Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!samsung!emory!gatech!usenet.ins.cwru.edu!ncoast!fmsrl7!slee01!hugh From: hugh@slee01.srl.ford.com (Hugh Fader) Newsgroups: comp.unix.misc Subject: How can I count number of FLOPS executed by a program? Message-ID: <37738@fmsrl7.UUCP> Date: 12 Mar 91 13:58:07 GMT Sender: root@fmsrl7.UUCP Reply-To: hugh@slee01.srl.ford.com (Hugh Fader) Organization: Ford Motor Co, Sci. Res. Labs., Dearborn, MI Lines: 20 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