This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

where is gcrt0.a: profiler does not work (-p option)


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


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