Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
除非加入打印操作,要不然值都是0,这个问题怎么解决,毕竟我现在需要优化性能,必须使用-O2或-O3编译
@段晓辉 烦请大佬过来看看
@arrow 在get_reply != 2那行后面加asm volatile("memb\n\t":::"memory")
asm volatile("memb\n\t":::"memory")
@arrow 抱歉,刚刚试了一下,没用,我再改下代码
@arrow 然后get_reply是不是volatile?
@段晓辉 你好,这个问题勉强算是解决了