tg at swox.com
Fri Jan 11 16:25:40 CET 2008
Torsten Bonde Christiansen <torsten at bondechristiansen.dk> writes:
I tried to compile gmp-4.2.2 with profiling support, but for some reason
the gmp functions does not show up in the output.
I've compiled the library both using:
CFLAGS="-pg -g3 -O0" ./configure
(including several other variants).
Are you saying that you override CFLAGS. Then you're your own.
and when compiling my own program using:
gcc -pg -O0 -g3 -o my_prog my_prog.c -lgmp
When executed the program generates the required gmon.out file, but no
where in the output (using gprof my_prog > my_prog.out) is any of the
gmp functions displayed.
I thought this could be down to the fact that they use so little time
executing, that they are discarded by the profiler, but that should not
be the case since i'm doing some rather nasty modulo operations on
intergers > 4 machine words.
How about trying with doing more work then? That's easier than
guessing, and would produce much more accurate results. :-)
Anyone who has an idea to what I could be doing wrong?
Yes, you report a problem without the information we need to have any
chance at trying to reproduce it. I'd suggest a look in the manual,
which clearly outlines what a GMP bug report needs to contain.
More information about the gmp-bugs