cancel
Showing results for 
Search instead for 
Did you mean: 

Is the C standard library embedded with the program ?

oldone
Associate II
Posted on April 07, 2018 at 18:27

When i compile my project with gcc, does it :

  • Include all the C standard library with my source code into the flash memory ?
  • Or does it include only what i've used ?
  • Or does it not include it at all ?

Thanks.

#c-compiler #c-library
1 REPLY 1
Posted on April 08, 2018 at 00:23

Normally, the linker which comes with gcc links only those functions from the standard library, which are used by the program.

JW