| 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:from:to:subject:date:message-id:references | |
| :content-type:content-transfer-encoding:mime-version; q=dns; s= | |
| default; b=SFHUdLD3NY3Xgi6M+fOCNc6WO9rmMXfr56XZLlMJhf/DUkYO3ncRA | |
| c16+G7nHBmMaGlvbCed3NEU38+4XSUu0SMsPnZoaRpGqnr1Pfby7hFWaQvuwMHGM | |
| /LqlMRtpH6V0QwpFa1R4u6/gnEeacj9I3OUmpUb1DMLDgKuC9hsDEI= | |
| 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:from:to:subject:date:message-id:references | |
| :content-type:content-transfer-encoding:mime-version; s=default; | |
| bh=LTvhXJZvy6Hz5q1w5v8+o+Ud3m4=; b=c/HIxrpx8ev7AAf+DsNvJd6PINDS | |
| xyKJ+IyoanmaHUSQg8Hp7Qtcg3kZayvc/WQbFAx3YiuizNeJ4hKZoZNBcyVgjvW2 | |
| ZNQBvwxQe8Je8EFag2GPdmTSKi/VBKZVreL+s3UDm4QLN6ZyMSM+UACq7bZk2ADL | |
| zg2uatTvSj7tCRo= | |
| 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=-3.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD autolearn=ham version=3.3.1 |
| From: | "J.B.W.Webber" <J DOT B DOT W DOT Webber AT kent DOT ac DOT uk> |
| To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
| Subject: | RE: What is a good profiling tool ? - problem with gprof |
| Date: | Tue, 18 Jun 2013 16:28:21 +0000 |
| Message-ID: | <2CF6002E09D8F54E9839DA08786D3200958D977F@EX10-LIVE-MBN2.ad.kent.ac.uk> |
| 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> <20130618103825 DOT GD27405 AT calimero DOT vinschen DOT de> <2CF6002E09D8F54E9839DA08786D3200958D9548 AT EX10-LIVE-MBN2 DOT ad DOT kent DOT ac DOT uk> <CANeJNHrAoy5r_eFZMAX-k0HMmc4r-ik2edu7Y+jqn9AFqzcKnA AT mail DOT gmail DOT com> |
| MIME-Version: | 1.0 |
| X-IsSubscribed: | yes |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id r5IGSqgV014427 |
-----Original Message-----
Subject: Re: What is a good profiling tool ? - problem with gprof
Ariel Burbaickij wrote:
> Uhm, may I ask for some pointers to Altera/Stawberry cygwins -- what is it?
Does it have something to do with http://en.wikipedia.org/wiki/Strawberry_Perl ?
Hi Ariel,
Altera produce Field Programmable Gate Array chips (FPGAs), and their NIOS II software for programming them is essentially a port of Unix type software to the Windows PC, by including its own Cygwin installation.
And yes, it is indeed Strawberry_Perl, which is also based on Cygwin.
Cheers,
Beau
On Tue, Jun 18, 2013 at 4:06 PM, J.B.W.Webber <J DOT B DOT W DOT Webber AT kent DOT ac DOT uk> wrote:
>
>
> -----Original Message-----
> Subject: Re: What is a good profiling tool ? - problem with gprof
>
> 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
>
> _____________________________________________
>
> Really thanks to all. That now works.
>
> Sorry for the slow reply, I did the install with the snapshot as
> suggested
> - no difference, at first, but I had been given the clues I needed.
>
> I used find to track all libgmon.a on my laptop :
>
> C:/Altera/12.0sp2/quartus/bin/cygwin/lib/libgmon.a
> C:/Altera/12.0sp2/quartus/bin/cygwin/lib/mingw/libgmon.a
> C:/Altera/12.0sp2/quartus/bin/cygwin/usr/i686-pc-mingw32/lib/libgmon.a
> C:/Applications/Strawberry/c/x86_64-w64-mingw32/lib/libgmon.a
> C:/cygwin/lib/libgmon.a
> C:/cygwin/usr/i686-pc-mingw32/sys-root/mingw/lib/libgmon.a
> C:/cygwin/usr/lib/libgmon.a
>
> I blocked access to the Altera and Strawberry Cygwins, which made no
> difference, (no, XMOS does not use Cygwin) But the answer was the
> version C:/cygwin/lib/libgmon.a I copied the new gcrt0.o and libgmon.a
> into C:/cygwin/lib/ and all now works fine. I have the answer I needed.
>
> I do thank you all,
> Cheers,
> Beau
>
>
--
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
--
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 |