This is the mail archive of the
mailing list for the GCC project.
- From: kavii ita <systemonchip2000 at yahoo dot co dot in>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 12 Jul 2004 10:19:30 +0100 (BST)
- Subject: Re: profiling
> > I am afraid profil() or settimer functional
> support is
> > not there for the targets without any OS sitting
> > it.
> > How does the profiling works on other embedded
> > in gcc world?
> > I have global counter unit on the hardware. If i
> > this in prologue and epilogue of function . I can
> > the time spend in the function.
> > Can I make a use of this to replace profil()
> > functionality ? I want to replace native calls
> > and monstartup
> > with my code which will using hardware timer. Can
> > get implement flat profile/call graph profile
> Suggest you write a little library which provides
> mcount/monstartup/profil interface. This will be
> *much* easier than hacking prologue generation.
Thanks for the help. getting such library will solve
lot of purpose.
I have no OS on the hardware. but it can go into ISR
as soon as timer interrupt arrives.
What I understand is that profil() will allocate some
memory area, and in the timer ISR I will need to
the respective array slot based on the value of PC and
is it feasible to get profil() similar functionality
using timer engine? Would it be easy to porting
mcount/monstartup/profil interface functions this way?
Or where can I have a look on some reference
Yahoo! India Careers: Over 50,000 jobs online
Go to: http://yahoo.naukri.com/