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.

急问:代码哪里出问题了?



在调试代码过程中发现如下问题:

我的代码如图1,程序正常应该是进入in的分支的,但是实际结果却是进入了out的分支,在Visual Studio里实现的软件版本可以正确进入in分支。

我是在TMX320C6678LE 1.0评估板上进行的如下测试。

上图中pirntf语句打印结果如下图所示:

我在变量监视里加入了如下表达式,其结果为0xFFFF00000000。

查看内存内容如下。一个为L1DCache结果一个为取消勾选L1D Cache结果。

百思不得其解其中奥秘,请各位指教。。。