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.

DSP6748的编译器优化问题



各位专家:

            我在DSP6748上遇到这样的问题:我把编译器选项调成O1模式进行优化,优化后我的中断服务函数执行不正常,到中断服务函数中发现某些关键变量被优化掉了,怎么保证我的关键代码不被优化?或者在我们的关键代码前后加什么指令可以阻止关键代码不做任何优化?或者再打开些什么编译选项可以保证关键代码不被优化?谢谢!