This is the mail archive of the gcc@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]
Other format: [Raw text]

GCC and gmon ?


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
----------




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