This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gprof and xscale-elf-gcc
- From: Jason R Thorpe <thorpej at wasabisystems dot com>
- To: Arvind Krishnaswamy <arvind at CS dot Arizona dot EDU>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 27 Jan 2002 17:59:04 -0800
- Subject: Re: gprof and xscale-elf-gcc
- Organization: Wasabi Systems, Inc.
- References: <Pine.LNX.4.33.0201271800001.1989-100000@banco.CS.Arizona.EDU>
- Reply-to: thorpej at wasabisystems dot com
On Sun, Jan 27, 2002 at 06:03:49PM -0700, Arvind Krishnaswamy wrote:
> I'm using the xscale-elf-gcc corss compiler. How do I use xscale-elf-gprof
> for profiling data? The linker cannot find -lc_p. How do I fix this?
Well, you need to build a profiled libc (libc_p.a).
> Provided this can be fixed, how do I run the program under this cross-compiler
> environment to generate gmon.out?
Well, this depends on what sort of profiling support your OS provides. But
the C library should dump out the profiling buffers when the program exits,
or if you have some other trigger mechanism to transfer the profiling buffers
somehow.
> How does one generally profile when developing for targets such
> as the xscale(or any other embedded processor)?
>
> -Arvind
>
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>