From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 3589 invoked from network); 25 Nov 1998 09:06:38 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 25 Nov 1998 09:06:38 -0000 Received: from mailgw2.fhg.de (fhg.de [153.96.1.1]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id EAA21732 for ; Wed, 25 Nov 1998 04:06:18 -0500 Received: by mailgw2.fhg.de (fhg.de); Wed, 25 Nov 1998 10:06:15 +0100 (MET) X-ENV: (mailgw2.fhg.de) scr@iis.fhg.de -> axp-list@redhat.com.VIA-SMTP X-BULK-CHECK-2-981125.10.03.30: root@iis.iis.fhg.de [153.96.172.2] Received: by mailgw2.fhg.de (fhg.de) with ESMTP; Wed, 25 Nov 1998 10:03:26 +0100 (MET) from iis.fhg.de Received: by iis.fhg.de with SMTP; Wed, 25 Nov 1998 10:03:26 +0100 (MET) from sunserv02.iis.fhg.de Received: from ew003 by sunserv02.iis.fhg.de (SMI-8.6/SMI-SVR4) id KAA17731; Wed, 25 Nov 1998 10:03:26 +0100 Sender: scr@iis.fhg.de Message-ID: <365BC8FF.41C67EA6@iis.fhg.de> Date: Wed, 25 Nov 1998 10:08:15 +0100 From: Stefan Schroepfer Organization: FHG-IIS X-Mailer: Mozilla 3.0 (X11; I; SunOS 4.1.3_U1 sun4m) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Profiling on Alpha (slightly off topic) References: <13915.48455.556719.679843@flow.geo.vu.nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Jaap Schellekens wrote: > > Dear all, > > Back in the old days (on my 25Mhz486) I used the -gp option with gcc > to get profiling info for gprof. For me this worked great. The newer > version of gcc end egcs for the alpha do not support this. Yes i know > you should use -fprofile-arcs -ftest-coverage and run gcov. 1. You must use static linkage (`-static') for profiling. 2. The profiling option is `-pg' (not `-gp'). 3. For Redhat 4.x, you need two patches (profiling in 5.1 works out of the box): http://www.redhat.com/support/mailing-lists/archives/axp-list/1997-March/0463.html http://www.redhat.com/support/mailing-lists/archives/axp-list/1997-March/0464.html > However, this produces a lot of files but not very usefull information > (for me at least). Does anyone out there knows if egcs can be build to > support -gp? (other profiling suggestions are welcome as well) scr