Other Parts Discussed in Thread: TMS320C6455
hello, I'm using CCSV5.3 build program on tms320C6455 board, I have a program which calculate the SNR of an image, when I debug it with no optimize option enabled I can get right result ,but when I enabled -o3 option ,I found the result is wrong, I stored the SNR value in a Uint16 variable,I did an comparation between my program that optimized and not optimized, here is an example ,
I directly assign the variable with 0x1234 and I can watch the variable is 0x1234 after I execute the code(this is not optimized with -o3), but when I optimized the program with -o3, I found the variable is 0x3412,what's the problem, can anyone explain it?
watting for your answer.