我通过在4M共享存储区定义Flag的方式来进行6678的多核同步,在编译优化等级设为1时,同步有效,但是在优化等级设为2或3时,同步失效了,请问这是什么原因,谢谢!
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.
同步标志定义的时候有没有声明为volatile?
在使用高优化级别的时候,变量访问后可能通过寄存器保存其内容,而不再重新进行内存的访问。