So, inline, __inline, __forceinline, __attribute__(inline), __inline__, static inline and when the hell a compiler chooses to inline a function is "fun".
Ugh, I've had to deal with this problem. Even always_inline will be ignored if it causes a function to grow too big, you need to tweak a bunch of --params like large-function-growth.
-
-
This is a real Makefile from some code I was working on a while ago, trying to convince gcc to inline my code. Without the params, code is about 5% slower, we need a always_always_inline attribute
pic.twitter.com/OyPO2aiOm1
- End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.