GCC and gmon ?
Brenner Joel
joel.brenner@nemerix.com
Thu Nov 14 06:29:00 GMT 2002
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
----------
More information about the Gcc
mailing list