Libraries Overview

A library is a collection of functions grouped for reference and ease of linking. See the “MPLAB® XC16 Assembler, Linker and Utilities User’s Guide” (DS50002106) for more information about making and using libraries.

Compiler Installation Locations

The majority of the libraries discussed in this manual come with the MPLAB XC16 C Compiler, which is installed by default in the following locations:

where x.xx is the version number.

Assembly Code Applications

Free versions of the 16-bit language tool libraries are available from the Microchip web site. DSP and 16-bit peripheral libraries are provided with object files and source code. A math library (containing functions from the standard C header file <math.h> ) is provided as an object file only. The complete standard C library is provided with the MPLAB XC16 C Compiler.

C Code Applications

The 16-bit language tool libraries are included in the lib subdirectory of the MPLAB XC16 C Compiler install directory (see “Compiler Installation Locations”). These libraries can be linked directly into an application with a 16-bit linker.