* AW: How to use gprof under cygwin?
@ 1999-08-09 22:26 Ahrens, Frank 6537 EPE-24
1999-08-31 23:49 ` Ahrens, Frank 6537 EPE-24
0 siblings, 1 reply; 2+ messages in thread
From: Ahrens, Frank 6537 EPE-24 @ 1999-08-09 22:26 UTC (permalink / raw)
To: 'Mumit Khan'; +Cc: 'cygwin@sourceware.cygnus.com'
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.ahrens@de.heidelberg.com
"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
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* AW: How to use gprof under cygwin?
1999-08-09 22:26 AW: How to use gprof under cygwin? Ahrens, Frank 6537 EPE-24
@ 1999-08-31 23:49 ` Ahrens, Frank 6537 EPE-24
0 siblings, 0 replies; 2+ messages in thread
From: Ahrens, Frank 6537 EPE-24 @ 1999-08-31 23:49 UTC (permalink / raw)
To: 'Mumit Khan'; +Cc: 'cygwin@sourceware.cygnus.com'
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.ahrens@de.heidelberg.com
"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
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-08-31 23:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-09 22:26 AW: How to use gprof under cygwin? Ahrens, Frank 6537 EPE-24
1999-08-31 23:49 ` Ahrens, Frank 6537 EPE-24
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).