B
BartC
Is there a way of controlling which functions are inlined, or likely to be
inlined, and which ones you never want inlined? Especially with gcc...
(I have a file with over 300 functions, each of which is called at most
once. Strange things are happening with performance, such as being 60%
slower, when, for example, a function's body is populated with code (they
start off empty), even though the function is never actually called.
I assume this is due to selective inlining. At the moment I've had to
segregate the functions from the calls, to avoid undue influence on
performance, but want to benefit from inlining later on, without having to
re-integrate the functions one by one.)
inlined, and which ones you never want inlined? Especially with gcc...
(I have a file with over 300 functions, each of which is called at most
once. Strange things are happening with performance, such as being 60%
slower, when, for example, a function's body is populated with code (they
start off empty), even though the function is never actually called.
I assume this is due to selective inlining. At the moment I've had to
segregate the functions from the calls, to avoid undue influence on
performance, but want to benefit from inlining later on, without having to
re-integrate the functions one by one.)