PCDIDE COMPILER Custom Computer Services Inc (CCS), PCDIDE COMPILER Datasheet - Page 31

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
PROGRAM SYNTAX
Overall Structure
A program is made up of the following four elements in a file:
Every C program must contain a main function which is the starting point of the program execution.
The program can be split into multiple functions according to the their purpose and the functions
could be called from main or the subfunctions. In a large project functions can also be placed in
different C files or header files that can be included in the main C file to group the related functions
by their category. CCS C also requires to include the appropriate device file using #include
directive to include the device specific functionality. There are also some preprocessor directives
like #fuses to specify the fuses for the chip and #use delay to specify the clock speed. The
functions contain the data declarations,definitions,statements and expressions. The compiler also
provides a large number of standard C libraries as well as other device drivers that can be included
and used in the programs. CCS also provides a large number of built-in functions to access the
various peripherals included in the PIC microcontroller.
Comment
Comments – Standard Comments
A comment may appear anywhere within a file except within a quoted string. Characters between /*
and */ are ignored. Characters after a // up to the end of the line are ignored.
Comments for Documentation Generator-
The compiler recognizes comments in the source code based on certain markups. The compiler
recognizes these special types of comments that can be later exported for use in the
documentation generator. The documentation generator utility uses a user selectable template to
export these comments and create a formatted output document in Rich Text File Format. This
utility is only available in the IDE version of the compiler. The source code markups are as follows.
Global Comments – These are named comments that appear at the top of your source code. The
comment names are case sensitive and they must match the case used in the documentation template.
Comment
Pre-Processor Directive
Data Definition
Function Definition
17

Related parts for PCDIDE COMPILER