Microchip Technology SW006023-2N Data Sheet

Page of 238
Compiler Command Line Driver
 2012 Microchip Technology Inc.
DS51686E-page 57
3.5.1.2
USER-DEFINED LIBRARIES
User-defined libraries may be created and linked in with programs as required. Library 
files are more easy to manage and may result in faster compilation times, but must be 
compatible with the target device and options for a particular project. Several versions 
of a library may need to be created to allow it to be used for different projects.
User-created libraries that should be searched when building a project can be listed on 
the command line along with the source files.
As with Standard C/C++ library functions, any functions contained in user-defined 
libraries should have a declaration added to a header file. It is common practice to cre-
ate one or more header files that are packaged with the library file. These header files 
can then be included into source code when required.
3.5.2
Peripheral Library Functions
Many of the peripherals of the PIC32MX devices are supported by the peripheral library 
functions provided with the compiler tools. See the “32-Bit Language Tools Libraries” 
(DS51685) for details on the functions provided.