MSVC - Any way to check if a feature is really enabled?

I need to check if the function is enabled by the compiler. Is there a way to do this without looking at the assembly (which I am not reading). I have no choice in this, so I would prefer it if we could not discuss the wisdom of this. Thanks!

+5
source share
5 answers

Create the "MAP" file. This gives you the addresses of all non-built-in functions. If your function is displayed in this list, it is not built-in, otherwise it is fully or completely optimized (for example, when it is not called at all).

+1
source

C4714, C4710 C4711, , .

+6

.

, , . , , .

, , . , ( , , ). , , / , ( ), ( ).

+5

/FAs asm , , .

. , __forceinline.

+2

If you really do not want to enter the assembly, declare the __forceinline function, and if the executable becomes larger, you know that it was not embedded.

0
source

All Articles