M
mashrur.mia
Hello All,
Since "inline" keyboard is basically an advice to the compiler to
inline a function, is there a way to know whether the complier took the
advice?
I guess one way to verify is to check the file size of the executable
or the object file. Is there any other way? Perhaps checking the
assembler code the compiler generates? I am using g++ so I can
generated .s file with -S option. Although, I am not a assember
programmer, but even when simple inline function is used, I see the
assember using "call" instruction for my simple inline function.
Any help will be appreciated.
Mashrur
Since "inline" keyboard is basically an advice to the compiler to
inline a function, is there a way to know whether the complier took the
advice?
I guess one way to verify is to check the file size of the executable
or the object file. Is there any other way? Perhaps checking the
assembler code the compiler generates? I am using g++ so I can
generated .s file with -S option. Although, I am not a assember
programmer, but even when simple inline function is used, I see the
assember using "call" instruction for my simple inline function.
Any help will be appreciated.
Mashrur