This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How to use gprof under cygwin?


"Ahrens, Frank 6537 EPE-24" <Frank.Ahrens@de.heidelberg.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@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]