Page 1 of 1

Profiling arm/nds program

Posted: Tue Jul 31, 2012 4:26 pm
by LeRodeur
Hello,
I wanted to do some profiling on my homebrew, to be able to speed it up a bit.
But when i used -pg command in my makefile, it seemed profiling wasnt implemented in devkitpro. (undefined reference to __gnu_mcount_nc)
I searched the net and bumped into this : http://doc.ironwoodlabs.com/arm-arm-non ... count.html
Would it be possible to implement profiling in devkitarm for the nds? (at least for the arm9)
Or could someone code an implementation for me? I only want for arm9 as my program uses default arm7 core.
I would have done it by myself if I knew how to code in ASM.
Thanks in advance.

Re: Profiling arm/nds program

Posted: Fri Aug 24, 2012 10:23 am
by WinterMute
There is some code for profiling kicking around from a few years ago but I've never been particularly keen on the way it was done. Thanks for the link though, that gives me some ideas for improving it - I need to do some testing and report back, hopefully in a few days at most.

Re: Profiling arm/nds program

Posted: Fri Aug 24, 2012 2:59 pm
by mtheall