Can different optimization levels lead to functionally different code?

前端 未结 13 1902
[愿得一人]
[愿得一人] 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

提交回复
热议问题