2 Libraries Overview
A library is a collection of functions grouped for reference and ease of linking. See the MPLAB® XC-DSC Assembler, Linker and Utilities User’s Guide (DS-50003590) for more information about making and using libraries.
Compiler Installation Locations
The majority of the libraries discussed in this manual come with the MPLAB® XC-DSC C Compiler, which is installed by default in the following locations:
- Windows OS 64-bit -
C:\Program Files\Microchip\xc-dsc\vx.xx
- Mac OS -
/Applications/microchip/xc-dsc/vx.xx
- Linux OS -
/opt/microchip/xc-dsc/vx.xx
where vx.xx
is the version number.
Assembly Code Applications
Free versions of the MPLAB XC-DSC libraries are available from the Microchip web site. DSP and DSC 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 XC-DSC C Compiler.
C Code Applications
The MPLAB XC-DSC libraries are included in the lib subdirectory of the MPLAB XC-DSC C Compiler install directory (see “Compiler Installation Locations”). These libraries can be linked directly into an application with a MPLAB XC-DSC linker.