delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=fcqi/PeWXkNrgv0nJgeBf9uiTpROPjGjaOFyw2J372CLVGp8M6BWN | |
RgnYGGrVcD222vBqCWUL5Y7A5u5tgtOsaGn5YPOuIS1MoLk2R6f9pxR8t6fM9vbA | |
mmOUYrlNYPsvoHjFCtZS0+WfSMKO60wzgwgMmh/lZohC1rhiwBN7xg= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=qplBYR7SEdIilM9is+LNYfSPkJE=; b=oaJRiaOeUubebazASYZdK7k/M6PI | |
+8G/MfZyyGM0moqKBLiBZ543tSTsLTmrzl7c0i7iOFlgsG9OPTb6UbUpxtJx7wvv | |
IyTb8q0hEfDqRuHzgkRZWDx8qD+98YpeRs6ySS5UxZjbpJmASRypqmY0zWwmebqr | |
UyTT0yzDzzVUXL4= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-Spam-SWARE-Status: | No, score=-1.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 |
Date: | Tue, 18 Jun 2013 12:38:25 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: What is a good profiling tool ? - problem with gprof |
Message-ID: | <20130618103825.GD27405@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <2CF6002E09D8F54E9839DA08786D3200958D7B7A AT EX10-LIVE-MBN2 DOT ad DOT kent DOT ac DOT uk> <51BF3EC0 DOT 4040906 AT cygwin DOT com> <20130618101107 DOT GA27405 AT calimero DOT vinschen DOT de> |
MIME-Version: | 1.0 |
In-Reply-To: | <20130618101107.GA27405@calimero.vinschen.de> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
On Jun 18 12:11, Corinna Vinschen wrote: > On Jun 17 12:52, Larry Hall (Cygwin) wrote: > > On 6/17/2013 12:19 PM, J.B.W.Webber wrote: > > >Hi, I am trying to find in which function call the most time is being spent. > > > > > >I am using gcc and trying to compile and link with -g and -pg. > > >i.e. for a trivial test : > > > > > >$ cat helloworld.c > > >/* Hello World program */ > > >#include<stdio.h> > > >main() > > >{ > > > printf("Hello World\n"); > > >} > > > > > >$ gcc -g -pg -c helloworld.c > > >$ gcc -pg helloworld.o > > >helloworld.o: In function `main': > > >helloworld.c:6: undefined reference to `_mcount' > > >collect2: ld returned 1 exit status > > > > > >Any ideas ? Am I missing a .h call ? Or do I need to link to something ? > > > > Worked for me. Perhaps your Strawberry gcc installation is interfering. > > I don't know how you succeeed to build that, Larry. I could easily > reproduce the problem. It was a build problem in Cygwin. I fixed that > now and at the same time made the 64 bit profiling workable, curtesy the > Mingw-w64 project, which already did the required work. The original > profiling code was created within the Cygwin project ages ago, so I > could included the latest Mingw-w64 profiling code (almost) verbatim > into Cygwin and now it seems to work fine again for 32 and 64 bit. > > I'm just about to create a 2013-06-18 32 bit snapshot on > http://cygwin.com/snapshots/ and a 64 bit test release 1.7.12-5, > which both should be ready in an hour. Uploaded. Please note that it's *not* enough to install the snapshot Cygwin DLL. The important items here are gcrt0.o and libgmon.a. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |