This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: profiling
- From: Zack Weinberg <zack at codesourcery dot com>
- To: kavii ita <systemonchip2000 at yahoo dot co dot in>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 09 Jul 2004 00:29:58 -0700
- Subject: Re: profiling
- References: <20040709072348.81571.qmail@web8309.mail.in.yahoo.com>
kavii ita <systemonchip2000@yahoo.co.in> writes:
> Hello,
One message is enough, you know.
> I am afraid profil() or settimer functional support is
> not there for the targets without any OS sitting on
> it.
> How does the profiling works on other embedded targets
> in gcc world?
>
> I have global counter unit on the hardware. If i use
> this in prologue and epilogue of function . I can get
> the time spend in the function.
>
> Can I make a use of this to replace profil()
> functionality ? I want to replace native calls mcount
> and monstartup
> with my code which will using hardware timer. Can I
> get implement flat profile/call graph profile
Suggest you write a little library which provides the
mcount/monstartup/profil interface. This will be
*much* easier than hacking prologue generation.
zw