I'm a little confused with how to take full advantage of GCC's new LTO and some inline functions. I have read websites like http://www.linuxtopia.org/online_books/programming_tool_guides/linux_using_gnu_compiler_collection/inline.html
however have to say i'm very confused.
I have a situation where I have one library.a and another library2.so and then some header and source files. Where do I put 'inline', 'extern inline' and 'static inline'? In just the headers, just the source or both? And in what situations!
I'm planning on using '-flto -fuse-linker-plugin -fwhole-program' and have compiled and installed GCC with '--enable-lto --enable-gold' so hopefully it will be able to link and inline/optimise all my code as if it were one (if I understand LTO that is).
Many thanks in advance,