delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
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-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, |
<http://sourceware.cygnus.com/ml/#faqs> | |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-ID: | <7B9327EED0AAD211B0750090270F68EC0BAA5B@hdhexmbx02.ger02.heidelberg.com> |
From: | "Ahrens, Frank 6537 EPE-24" <Frank DOT Ahrens AT de DOT heidelberg DOT com> |
To: | "'Mumit Khan'" <khan AT xraylith DOT wisc DOT EDU> |
Cc: | "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com> |
Subject: | AW: How to use gprof under cygwin? |
Date: | Tue, 10 Aug 1999 07:27:54 +0200 |
MIME-Version: | 1.0 |
X-Mailer: | Internet Mail Service (5.5.2448.0) |
Hello, if I try to compile the way below, I get the following message /tmp\ccCdYXI6.o(.text+0x4f):test.cc: undefined reference to `mcount'. Do I have to use a special library to link correctly for profiling? Greetings Frank e-mail: frank DOT ahrens AT de DOT heidelberg DOT com "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 -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |