Hello I am facing some problem related to profiling in CCS I am using TMS320vc5402 for my project. in my project i am using some c files and then i compile these c files using -o3 option and generate asm files. if i build proj with either c files or asm files i am getting desired results. now i want to profile some area of my c code and asm code. here is c code for (i=1; i<=NP; i++) //value of NP is 12 acc0 = L_mac(acc0, r_h[i], lbf_corr[i]); now i am getting profiler value like code size etc etc and my o/p is also same when i used asm file (obtained by -o3 option) i am not getting profile values here is equivalent asm code L4: MVDK *SP(11),*(AR2) LD *AR2+,B MVKD *(AR2),*SP(11) STL B,*SP(0) MVDK *SP(10),*(AR2) LD *AR2+,B STL B,*SP(1) MVKD *(AR2),*SP(10) CALL #_L_mac ; |106| ; call occurs [#_L_mac] ; |106| MVDK *SP(12),*(AR2) BANZD L4,*+AR2(-1) ; |106| MVKD *(AR2),*SP(12) ; branch occurs ; |106| if i select above asm code as profile range then my prog is going in to infinite loop. the prob is coming in last two lines BANZD L4,*+AR2(-1) ; |106| MVKD *(AR2),*SP(12) after BANZD value in AR2(which is initialy 0x000c = 12d) is decremented to 0x000b but the value copied into *SP(12) is always 0xddf5 and hence this loop runs as infinite loop. but without profiling my prog is running properly. so my prob is, i am not getting why this is happening and what is solution for this and also is there any other method for profiling or is there any configuration in CCS for profiling. I will be very happy and thankful to u if u can help me in this prob Thanx in advance Snehal |
prob in profiling in CCS
Started by ●September 16, 2002