This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
GCC and gmon ?
- From: Brenner Joel <joel dot brenner at nemerix dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 14 Nov 2002 14:38:03 +0100
- Subject: GCC and gmon ?
- Organization: Nemerix SA
- Reply-to: joel dot brenner at nemerix dot com
Hi all,
I need profiling for my embedded processor (SPARC V8 sparc-elf). In
order to allow using of gprof the code should be compiled with -pg
switch which
puts a call to _mcount before ordinary function calls and some other things.
In gcc-3.2.. there is a file /gcc/gmon.c which implements _mcount().
I've the following questions:
- am I right to suppose that gmon.c should be compiled during cross
compiler compilation ?
- gmon.c includes "gmon.h" which isn't in gcc source. Where can I find it?
Best regards Joel
--
Joel Brenner -- Designer
E-mail: joel.brenner@nemerix.com
Phone: +41 91 612 46 00 -- Fax : +41 91 612 47 01
Direct: +41 91 612 47 12
www.nemerix.com
NemeriX SA Stabile Gerre 2000
PO Box 425 6928 Manno, Switzerland
----------