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.

My program will give wrong result when I run,if I use -o3 optimization

As the subject ,if I use -o3 optimization build my project,the program will give wrong result,but if I break it after the program compute the result,I can get right result, there are several interrupt in my prog am,and my program was built based ondsp/bios,what's the problem with my program,could some one give me some advice,thanks