This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: multiple defintions error


> 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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]