Profiling information for powerpc target - GCC 4.1.1

Mohamed Shafi shafitvm@gmail.com
Thu May 24 14:45:00 GMT 2007


Hello all,

I am trying to generate profiling information for powerpc target
(rs600) using cross compiler version gcc 4.1.1 and newlib 1.14.0

After i compile a file with -pg option and execute it no gmon.out file
is produced.
When i disassemble the obj file i can find a call to _mcount.But when
i check the newlib sources the mcount call is actually a dummy
function with the following code

	.file	"mcount-dummy.S"
	.text
FUNC_START(_mcount)
	mflr	r11
	lwz	r0,4(sp)
	mtctr	r11
	mtlr	r0
	bctr
FUNC_END(_mcount)

I also couldn't find any particular startup file required for profiling.
Does this mean that profiling is not supported for any powerpc target
build with newlib?
Is there support for profiling for powerpc target with glibc?

Thanks for your time,

Regards,
Shafi



More information about the Gcc-help mailing list