multiple defintions error

Joern Rennecke amylaar@cygnus.co.uk
Tue Sep 26 08:29:00 GMT 2000


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


More information about the Gcc mailing list