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: List-Archive: List-Help: , 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" cc: "'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 "Ahrens, Frank 6537 EPE-24" 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