This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
where is gcrt0.a: profiler does not work (-p option)
- To: gcc-bugs at gcc dot gnu dot org
- Subject: where is gcrt0.a: profiler does not work (-p option)
- From: "Grandpa Gates" <grandpagates at hotmail dot com>
- Date: Wed, 04 Jul 2001 00:05:38 -0400
- Cc: grandpagates at hotmail dot com
I've tried everything, but I cannot get
the -p (profiler) option to work. The main
problem may be that I cannot find gcrt0.a, which
is widely documented as being necessary. Also,
libc_p.a is likewise missing.
I am using 2.95.2 on unixware 7 on a pentium
box. I downloaded the source, hoping to find
something like "gcrt0.c", but I came up
empty handed.
Since _newmon() cannot be resolved when I link,
I even tried linking against the native profile
library (/usr/ccs/lib/libprof.a), but when
I did that, my executable dropped core
immediately on a segmentation violation
with this stack: _rt_boot -> _rt_setup ->
rt_pre_init -> _newmon -> _dprofil. This
is not all that surprising, but shows my
desperation. I then wrote a stub for _newmon(),
but not surprisingly, did not get any profiling.
Any suggestions or insights would be greatly
appreciated. I am new to the GNU world, but
have a million lines of old C++ spaghetti code
that runs way too slow.
Thanks,
Marc
grandpagates@hotmail.com
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com