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

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
Purpose:
Examples:
Example Files:
Also See:
108
Compilation mode selection-
The #DEVICE directive supports compilation mode selection. The valid keywords are
CCS2, CCS3, CCS4 and ANSI. The default mode is CCS4. For the CCS4 and ANSI
mode, the compiler uses the default fuse settings NOLVP, PUT for chips with these
fuses. The NOWDT fuse is default if no call is made to restart_wdt().
Chip Options -Defines the target processor. Every program must have exactly one
#DEVICE with a chip. When linking multiple compilation units, this directive must
appear exactly the same in each compilation unit.
Compilation mode selection - The compilation mode selection allows existing code
to be compiled without encountering errors created by compiler compliance. As CCS
discovers discrepancies in the way expressions are evaluated according to ANSI,
the change will generally be made only to the ANSI mode and the next major CCS
release.
Chip Options-
#device DSPIC33FJ64GP306
#device PIC24FJ64GA002 ICD=TRUE
#device ADC=10
#device ICD=TRUE ADC=10
Float Options-
#device %f=.
printf("%f",.5); //will print .5, without the directive it will
print 0.5
Compilation mode selection-
#device CCS2
None
None
CCS4
ANSI
CCS2
CCS2 only
CCS3
This is the default compilation mode.
Default data type is SIGNED all other modes default is
UNSIGNED. Compilation is case sensitive, all other modes
are case insensitive.
var16 = NegConst8 is compiled as: var16 = NegConst8 & 0xff
(no sign extension) . The overload keyword is required.
The default #DEVICE ADC is set to the resolution of the part,
all other modes default to 8.
onebit = eightbits is compiled as onebit = (eightbits != 0)
All other modes compile as: onebit = (eightbits & 1)

Related parts for PCDIDE COMPILER