What is the difference between the /Ox and /O2 compiler options?

前端 未结 2 786
野的像风
野的像风 2020-11-30 02:33

Microsoft\'s C++ compiler (cl.exe, as included with Visual Studio) offers several optimization switches. The difference between most of them seems self-explanat

2条回答
  •  渐次进展
    2020-11-30 03:00

    I found it here:

    Ox and O2 are almost identical. They differ only in the fact that O2 also throws GF and Gy. There is almost no reason to avoid throwing these two switches.

提交回复
热议问题