delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/08/04/15:04:20

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>,
<http://sourceware.cygnus.com/ml/#faqs>
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <199908041745.MAA04979@mercury.xraylith.wisc.edu>
To: "Ahrens, Frank 6537 EPE-24" <Frank DOT Ahrens AT de DOT heidelberg DOT com>
cc: "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: How to use gprof under cygwin?
In-Reply-To: Your message of "Wed, 04 Aug 1999 08:53:40 +0200."
<7B9327EED0AAD211B0750090270F68EC0BAA53 AT hdhexmbx02 DOT ger02 DOT heidelberg DOT com>
Date: Wed, 04 Aug 1999 12:45:58 -0500
From: Mumit Khan <khan AT xraylith DOT wisc DOT EDU>

"Ahrens, Frank 6537 EPE-24" <Frank DOT Ahrens AT de DOT heidelberg DOT com> writes:
> Hi,
> who can give me a hint, how to use gprof under cygwin?
> Does it generally work? Are there special things to make regarding cygwin?
> 

I have gprof for Cygwin at:
  
  ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/cygwin/ports/

You do as you normally would:
  
  $ gcc -pg -c foo.c
  $ gcc -pg -o foo foo.o
  $ ./foo
  $ gprof foo.exe

There are some limitations, but overall it works for C. There're problems
with C++ code (you'll probably get linker errors from multiple template
instances and so on), and you have to play a small trick with g77.

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019