I would like to massively use inline in my project to speed up performance.
As far as I know the compiler might apply inline or not; it is up to the compiler.
It is not clear to me what I can do to make this possible, but before going that direction, do you know a way to check that inlinining really occurred or not in the output binary?
Use
gcc -Winlineto get warnings when an inline function is not inlined.Use
__attribute__ ((always_inline))to force functions to be inlined.Having said that, be warned that you can screw up performance, compile time and get huge code bloat if you use inlining injudiciously.