Agressive use of inlining can lead to increased code-size, yes. Letting the compiler inline when it feels it's right will probably not do this too bad. The -Os switch will only inline a function if the resulting code is smaller than the code with outlined functions - so only real tiny functions.
Or if the function is nonrecursive and only called in one place. This can happen if parts of the code of a large function are moved out into "helper functions" solely to make it easier to understand and maintain.
Or if the function is nonrecursive and only called in one place. This can happen if parts of the code of a large function are moved out into "helper functions" solely to make it easier to understand and maintain.
True - and again, the code produced by this is actually smaller than if there was an external function - because parameter passing and call itself has been removed.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.