> It is like you copy&paste such function into each source file, so no > performance penalities occurs. It is IMHO the only way how to share > functions which has to be inlined. No, there is also the 'extern inline' extension of gcc. This way, you can have just a single out-of-line copy of the function, giving a lower code size and better cache usage.