You do not have to worry.
And the compiler can even process some standard function on purpose if it does it in accordance with what the standard defines.
Sometimes GCC does such things, for example, it can optimize the memset call in a loop ...
If you asked how you linked your foo
program, the ldd foo
command answers in GNU / Linux.
Greetings.
source share