This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Code instrumentation with GCC
- From: "Richard Guenther" <richard dot guenther at gmail dot com>
- To: "Narech K" <narechk at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 29 May 2008 14:08:41 +0200
- Subject: Re: Code instrumentation with GCC
- References: <loom.20080529T115810-492@post.gmane.org>
On Thu, May 29, 2008 at 2:03 PM, Narech K <narechk@gmail.com> wrote:
> Hi,
>
> Is there a way to make GCC to instrument every function it compiles with a
> prologue/epilogue call to a user defined code a la MSVC's _penter and
> _pexit, e.g.:
>
> http://msdn.microsoft.com/en-us/library/c63a9b7h.aspx
> http://msdn.microsoft.com/en-us/library/xc11y76y.aspx
>
> If not, can anyone suggest a place in GCC's source to look at if one was to add
> such functionality self.
Note this is a question for gcc-help. Look for -finstrument-functions in the
documentation.
Richard.