SW006014 Microchip Technology, SW006014 Datasheet - Page 16

C COMPILER MPLAB FOR PIC24 MCU

SW006014

Manufacturer Part Number
SW006014
Description
C COMPILER MPLAB FOR PIC24 MCU
Manufacturer
Microchip Technology
Type
MPLAB® C Compilerr
Series
PIC24r
Datasheet

Specifications of SW006014

Supported Families
PIC24
Core Architecture
PIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24
Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC24
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
2.2
DS51456E-page 12
USING THE STANDARD C LIBRARIES
Building an application which utilizes the standard C libraries requires two types of files:
header files and library files.
2.2.1
All standard C library entities are declared or defined in one or more standard headers
(See list in Section 2.1.3 “Chapter Organization”.) To make use of a library entity in
a program, write an include directive that names the relevant standard header.
The contents of a standard header is included by naming it in an include directive, as in:
#include <stdio.h> /* include I/O facilities */
The standard headers can be included in any order. Do not include a standard header
within a declaration. Do not define macros that have the same names as keywords
before including a standard header.
A standard header never includes another standard header.
2.2.2
The archived library files contain all the individual object files for each library function.
When linking an application, the library file must be provided as an input to the linker
(using the
application may be linked into the application.
A typical C application will require three library files:
libpic30-
more on OMF-specific libraries.) These libraries will be included automatically if linking
is performed using the compiler.
Note:
Header Files
Library Files
--library
Some standard library functions require a heap. These include the standard
I/O functions that open files and the memory allocation functions. See the
“MPLAB
DSCs User’s Guide” (DS51317) and “MPLAB
MCUs and dsPIC
the heap.
omf
.a
. (See Section 1.2 “OMF-Specific Libraries/Start-up Modules” for
®
Assembler, Linker and Utilities for PIC24 MCUs and dsPIC
or
-l
linker option) such that the functions used by the
®
DSCs User’s Guide” (DS51284) for more information on
libc-
®
© 2008 Microchip Technology Inc.
omf
C Compiler for PIC24
.a
,
libm-
omf
.a
, and
®

Related parts for SW006014