This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TMS320C6657: CGT V7.4.21 optimization issue.(use -O3 and -O2 will cause array result error)

Part Number: TMS320C6657

Tool/software: TI C/C++ Compiler

Hi all,

Customer report a CGT issue.

Attached is the project can run on C6657 EVM.

If use -O0 or -O1 the sig_out[255] is 0xBC, it's right.

If use -O2 or -O3, the sig_out[255] is 0xB5. it's wrong.

-O3 picture:

-O0 picture:

And this is the attached project. I have checked, the CGT V7.4.20 and CGT V8.1.0 also have this issue. please help me the debug it, thanks!

testUn.7z

BR,
Denny