I would like to measure time taking of my codes with library functions of cycles.h. However, I do not know where (in VisualDSP++) and how to specify -DDO_CYCLE_COUNTS switch.
Could please advise me how to do it?
there are two places you can do this. Go to Project Options: Compile: Preprocessor. You can add "DO_CYCLE_COUNTS" to the 'Preprocessor definitions' field, or you can add "-DDO_CYCLE_COUNTS" to the 'Additional options' field.
Thank you very much. It worked.
Further question: the cycles counted is the core clock cycle or system clock cycle?
the cycle counting functions use the cycle registers (i.e. CYCLES and CYCLES2 on Blackfin, MS and LS on SHARC), which measure the CCLK.
I got it.
This was very helpful ! Thank you.
Retrieving data ...