Profil system call - Adding profiling support GCC 4.1.1

2007-05-14 Thread Mohamed Shafi
Hi All, I am adding profiling support for a private embedded target (GCC 4.1.1). I have implemented the profiling library, which includes mcount, mcleanup, monstartup, moncontrol. For Histogram records, i need to have the "profil" system call. But my target library does not contain "profil" syste

Re: Adding Profiling support - GCC 4.1.1

2007-03-26 Thread William Cohen
Jim Wilson wrote: Rohit Arul Raj wrote: 1. The function mcount: While building with native gcc, the mcount function is defined in glibc. Is the same mcount function available in newlib? or is it that we have to define it in our back-end as SPARC does (gmon-sol2.c). Did you try looking at newli

Re: Adding Profiling support - GCC 4.1.1

2007-03-22 Thread Jim Wilson
Rohit Arul Raj wrote: 1. The function mcount: While building with native gcc, the mcount function is defined in glibc. Is the same mcount function available in newlib? or is it that we have to define it in our back-end as SPARC does (gmon-sol2.c). Did you try looking at newlib? Try something l

Adding Profiling support - GCC 4.1.1

2007-03-20 Thread Rohit Arul Raj
Hi all, I need to implement profiling support for my backend (GCC 4.1.1). There is only limited information in GCC Internals to define the following macros (FUNCTION_PROFILER, PROFILE_HOOK ,NO_PROFILE_COUNTERS & PROFILE_BEFORE_PROLOGUE) to add profiling support. I need to know the following detai