在主程序开头定义的循环变量例如
void main()
{ int i,j;
i=10;
}
如果不打开-o3优化,i是能正常赋值的,如果打开后,i就不能赋值了,好像被优化掉了,请问怎么才可以不被优化掉,谢谢
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.
在主程序开头定义的循环变量例如
void main()
{ int i,j;
i=10;
}
如果不打开-o3优化,i是能正常赋值的,如果打开后,i就不能赋值了,好像被优化掉了,请问怎么才可以不被优化掉,谢谢