* Anyone know how to compile with profiling when using libtool?
@ 2003-03-13 0:41 Rob Browning
2003-03-14 21:29 ` Kevin Ryde
0 siblings, 1 reply; 2+ messages in thread
From: Rob Browning @ 2003-03-13 0:41 UTC (permalink / raw)
Though I can augment CFLAGS so that each .c file is compiled with -g
-pg, I haven't figured out a way to keep libtool from removing -pg
from the link line. It seems like libtool is removing -pg (and
-no-undefined, etc.) from the gcc command line just before issuing the
link command.
If at all possible, I'd rather not have it second guess me for at
least some of the options...
--
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Anyone know how to compile with profiling when using libtool?
2003-03-13 0:41 Anyone know how to compile with profiling when using libtool? Rob Browning
@ 2003-03-14 21:29 ` Kevin Ryde
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Ryde @ 2003-03-14 21:29 UTC (permalink / raw)
Rob Browning <rlb@defaultvalue.org> writes:
>
> Though I can augment CFLAGS so that each .c file is compiled with -g
> -pg, I haven't figured out a way to keep libtool from removing -pg
> from the link line. It seems like libtool is removing -pg (and
> -no-undefined, etc.) from the gcc command line just before issuing the
> link command.
One workaround is to make a script "my-gcc-pg" which just execs gcc
-pg, and use that by configuring with CC=my-gcc-pg. I think libtool
recognises gcc based on preprocessor defines, so the name of the
script hopefully doesn't matter.
To do it directly with libtool you can insinuate -Wc,-pg into the
flags, by overriding LDFLAGS or guile_LDFLAGS or whatever.
> If at all possible, I'd rather not have it second guess me for at
> least some of the options...
Rumour has it the next libtool will leave alone anything it doesn't
recognise.
Incidentally, http://sourceforge.net/projects/fnccheck is quite a nice
profiler, based on gcc -finstrument-functions. It uses the i586 rdtsc
to record function entry and exit, so it's a lot more accurate than
10ms sampling by prof.
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-03-14 21:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-13 0:41 Anyone know how to compile with profiling when using libtool? Rob Browning
2003-03-14 21:29 ` Kevin Ryde
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).