For { A=a; B=b; }, will “A=a” be strictly executed before “B=b”?

后端 未结 6 1878
臣服心动
臣服心动 2020-12-23 19:14

Suppose A, B, a, and b are all variables, and the addresses of A, B, a, and

6条回答
  •  Happy的楠姐
    2020-12-23 20:01

    If there is no dependency of instructions, these may be executed out of order also if final outcome is not affected. You can observe this while debugging a code compiled at higher optimization level.

提交回复
热议问题