C++ inline functions using GCC - why the CALL?

后端 未结 7 711
感动是毒
感动是毒 2020-12-28 17:55

I have been testing inline function calls in C++.

Thread model: win32
gcc version 4.3.3 (4.3.3-tdm-1 mingw32)

Stroustrup in The C++ Program

7条回答
  •  醉酒成梦
    2020-12-28 17:58

    It is a hint and the complier can choice to ignore the hint. I think I read some where that GCC generally ignore it. I remeber hearing there was a flag but it still does not work in 100% of cases. (I have not found a link yet).

    Flag: -finline-functions is turned on at -O3 optimisation level.

提交回复
热议问题