The GCC spec looks fine to me. The initialization and finalization code
that makes things happen is in libc, so that's where your problem is.
gcrt[01].o makes sure that __gmon_start__ gets called (libc/csu/gmon-start.c).
That initializer function calls __monstartup to start profiling and uses
ate
Could someone comment on this or point me to some place that could?
--- Start of forwarded message ---
Date: Fri, 22 Aug 2003 10:57:53 +0200 (MEST)
From: "Alfred M. Szmidt" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: gcc 3.3.x and pro
"Alfred M. Szmidt" <[EMAIL PROTECTED]> writes:
> Is there a reference of what all the crt files are supposed todo? If
> not, could someone tell me what they do?
crt*.o and similar files are startup code. I.e. code that is linked
automatically into the binaries when you link C programs, and is
ex
Perhaps you knew all this already, then you need to ask more
specificly.
This much I knew, sorry for being inspecific. I wanted to know the
exact function of what each crt*.o file does. For example what the
purpose of gcrt0.o is. Or what the purpose of crt1.o is. I.e. what
they are used
Hacking on getting profiling going has stalled since I can't really
figure out how to solve a peculiar problem. Maybe someone here can
come up with a solution.
The problem is as follows, `-pg' does not work, but `-static -pg' does
(it does not work in the sense that it produces an incomplete gmo
Is there a reference of what all the crt files are supposed todo? If
not, could someone tell me what they do?
___
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd
Hi,
I started hacking on gcc to support profiling a few days ago, and here
is a small status update (just so that we don't get duplicate work
around here), including a patch for any brave souls that want to play
with it (it's against the gcc-3_3-branch from the GCC CVS).
Simple programs like say