AnsweredAssumed Answered

Blackfin CycleCount implementation

Question asked by twilkers Employee on Jan 28, 2010
Latest reply on Jan 28, 2010 by CraigG

Hi all,

 

It seems that we generally use this as a subroutine call and incur the calling overhead.

 

.global _CurrentCycleCount;

 

.section L1_code;

.align 8;

 

_CurrentCycleCount:

 

        R0 = CYCLES;

                                NOP;

                                NOP;

                                NOP;

        RTS;

_CurrentCycleCount.end:

                                NOP;

       

 

Has anyone implemented this as a macro?  My customer is tight on cycles and this is one obvious way to improve.

 

Thanks,

Tim

 

Outcomes