Skip to main content
oldone
Associate II
April 7, 2018
Question

Is the C standard library embedded with the program ?

  • April 7, 2018
  • 1 reply
  • 559 views
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
    This topic has been closed for replies.

    1 reply

    waclawek.jan
    Super User
    April 7, 2018
    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