In Linux, using gcc
if I declare a function in a dynamic library as __attribute__((always_inline))
and then I dynamically load that library, will the function be inlined by the dynamic linker?
I am compiling dynamic libraries, in -O3
and not passing any link time optimization flags -flto
Real question is: is it worth declaring a function as always inline in a dynamic library, when it's called most of the times from another library?