This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gprof and xscale-elf-gcc
On Sun, Jan 27, 2002 at 07:07:20PM -0700, Arvind Krishnaswamy wrote:
> How do I run the cross compiled executable in the first place? While profiling
> for embedded processors does one actually run the program on that platform?
Yes, you would have to. Otherwise, you can't know how the program will
profile under workload on the actual device, right? :-)
> I was under the impression that development for such targets was done
> offline, on a different more powerful platform under a cross-compilation environment
> and the executable alone was shipped to the embedded platform.
Right ... you run the program on the target, it generates gmon.out data,
which you then examine on your development host after transferring it
from the target to the devel host.
> Doesn't one need performance simulators in that case to generate the
> profiling information?
You could also use simulators, yes. But you still have to run the program
you want to profile on the "target", be that the real device or in a sim.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>