#77351 - ProblemBaby - Thu Mar 30, 2006 3:57 pm
Hello
I want to optimize some code. First Ive to ask about the arm7...
All arm7 code have to be putted in some kind of IWRAM do this mean that all arm7 code is in arm-mode? if not is it like for the GBA some memory that executes arm code better?
And Ive the same question for arm9, where should i put arm code to get the best performence?
Last I just want to make sure that this is the correct values to measure performence (in percent with two decimals) so Usage = 100 means 1%
I want to optimize some code. First Ive to ask about the arm7...
All arm7 code have to be putted in some kind of IWRAM do this mean that all arm7 code is in arm-mode? if not is it like for the GBA some memory that executes arm code better?
And Ive the same question for arm9, where should i put arm code to get the best performence?
Last I just want to make sure that this is the correct values to measure performence (in percent with two decimals) so Usage = 100 means 1%
Code: |
REG_TM3D = 0; REG_TM3CNT = 0x81; // Some code Usage = REG_TM3D; REG_TM3CNT = 0; Usage = (((Usage<<6)*10000) / 1123584); |