Georg Baum wrote:
Abdelrazak Younes wrote:
 From a compiler POV, this should not matter really.

It matters a lot. During the compile, the compiler sees only what is in
the .h file. It does not know at all in which .C file the code of only
declared functions is, so it can't inline it.

If that would at all be possible the compiler would need the help of the
linker, because only at linking time the function body is known. Then the
linker could tell the compiler where the functin is defined, and the
compiler could recompile all code that uses the function with the inlined
version. I guess it is obvious why this is not in the standard.

It makes sense indeed, thanks.

Abdel.

Reply via email to