Profiling arm/nds program

support for the ARM toolchain
Post Reply
LeRodeur
Posts: 13
Joined: Tue Jul 31, 2012 2:36 pm

Profiling arm/nds program

Post by LeRodeur » Tue Jul 31, 2012 4:26 pm

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.

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Profiling arm/nds program

Post by WinterMute » Fri Aug 24, 2012 10:23 am

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.
Help keep devkitPro toolchains free, Donate today

Personal Blog

mtheall
Posts: 211
Joined: Thu Feb 03, 2011 10:47 pm

Re: Profiling arm/nds program

Post by mtheall » Fri Aug 24, 2012 2:59 pm


Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests