Generally speaking, they will be the same, not countin inlays or other global optimization features. But depending on the architecture, there may be subtle differences.
, Linux/Unix CU, :
void foo() {}
void bar()
{ foo(); }
:
static void foo() {}
void bar()
{ foo(); }
( !), foo() (, LD_LIBRARY_PRELOAD), . , , CU, .
Windows, , , LD_LIBRARY_PRELOAD, .