Can different optimization levels lead to functionally different code?

前端 未结 13 1854
[愿得一人]
[愿得一人] 2020-12-13 12:39

I am curious about the liberties that a compiler has when optimizing. Let\'s limit this question to GCC and C/C++ (any version, any flavour of standard):

Is it possi

相关标签:
13条回答
  • 2020-12-13 13:24

    same source code like

    before enable -finline-small-functions and after enable -finline-small-functions

    -finline-small-functions can be enabled in -O2/-O3

    0 讨论(0)
提交回复
热议问题