SDCC Library Licenses
See the list of all sdcc Files and Licenses.
See the list of SDCC Authors.
See Library License Selection for discussion and vote tallies regarding the selection of a new license for SDCC libraries.
See SDCC library source file license header for library source file license header.
The great majority of sdcc run-time libraries are licensed under the GPLv2+LE which allows linking of sdcc run time libraries with proprietary (closed source) applications.
Exception are pic device libraries and header files which are derived from Microchip header (.inc) and linker script (.lkr) files. Microchip requires that "The header files should state that they are only to be used with authentic Microchip devices" which makes them incompatible with the GPL. Pic device libraries and header files are located at non-free/lib and non-free/include directories respectively. Sdcc should be run with the --use-non-free command line option in order to include non-free header files and libraries.