5.7.10.5 Mchp-stdlibc Option
The -mchp-stdlibc=library option indicates which standard C
library will be linked with the project. The library
argument can be either musl, which is the Microchip Unified Standard Library
and the default selection if this option is not used, or picolibc, which has
been specifically designed for smaller embedded systems with limited memory. Both libraries
support reentrancy and thread-local storage of objects, making them suitable for applications
using multiple threads. The option aliases -mmusl and
-mpicolibc can be used to indicate the default or Picolibc libraries
respectively. This option must be used when both compiling and linking projects.
When using a debugging environment that supports semihosting, you can combine the Picolibc library with the semihosting library (see Semihost Option).
For more on the standard library functions, see the Microchip Unified Standard Library Reference Guide. Specific information on the Picolibc library can be found in Picolibc Library.
