Dear Experts,
I had a post similar to the one I have now. I am using the C6xxx Simulator (Revision 2) with "MAP 1" (Default memory mapping) and I am using a TI Test and Evaluation Board with a TMS320C6416 on it. I am porting a huge bundle of code and I am not able to understand an issue which still baffles me.... When I profile my code with simulator, it shows N cycles consumed in total (I am looking at the "Exclusive" column of the decoder.vaa generated by the simulator) and when I profile the same code (same .out file in fact) with the processor using the profiler in CCS v2.10, the numbers for total cycles consumed (I compare the "Exclusive" column of the result from the Simulator with "Excl. Total" from the processor profile) are completely different!! A typical example, function "A" consumes 54 cycles per count when I profile with the simulator, and the same function takes 364 cycles per count on the processor. I feel that I am doing something seriously wrong here (memory maps??), pardon me if it is a naive reason as this is the first time ever that I have worked with a DSP. Please help me on this.... Thanks for your time! Regards Indrajit |
|
Profiling with simulator and actual processor
Started by ●November 28, 2002
Reply by ●January 15, 20032003-01-15
AFAIK: if code is running with desired results, memory mapping is okay. section allocation can be a culptrit, only if it's different for the two codes. :-) I faced a similar discripancy ... and the reasons were- 1. on simulator, code was in internal memory, and on EVM, it was on external memory. 2. Even if the memories were made same, there was difference of performance.... and now it was due to CACHE enabled in case of EVM. first case wud 've caused reporting of bad performance on EVM in terms of profiling, and otherwise in 2nd case... see if it fits into ur scenario... :o) > > A typical example, function "A" consumes 54 cycles per > count when I profile with the simulator, and the same > function takes 364 cycles per count on the processor. > I feel that I am doing something seriously wrong here > (memory maps??), pardon me if it is a naive reason as > this is the first time ever that I have worked with a > DSP. Please help me on this.... > |