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

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
The id after ENUM is created as a type large enough to the largest constant in the list. The ids in
the list are each created as a constant. By default the first id is set to zero and they increment by
one. If a = cexpr follows an id that id will have the value of the constant expression and the
following list will increment by one.
Struct structuretype: creates a collection of one or more variables, possibly of different types,
grouped together as a single unit.
struct[
Field Allocation
- Fields are allocated in the order they appear.
- The low bits of a byte are filled first.
- Fields 16 bits and up are aligned to a even byte boundry. Some Bits may by unused.
- No Field will span from an odd byte to an even byte unless the field width is a multiple of 16 bits.
Union union type: holds objects of different types and sizes, with the compiler keeping track of
size and alignment requirements. They provide a way to manipulate different kinds of data in a
single area of storage.
union[
*
*
For example:
enum colors{red, green=2, blue};
blue will be 3
For example:
struct data_record {
] [id] {
] [id] {
} data_var;
int
int
int
int d;
type-qualifier [
One or more,
type-qualifier [
One or more,
semi-colon
separated
semi-colon
separated
b : 2; /*2 bits */
a [2];
c : 3; /*3
*
*
] id
] id
bits*/
[:bits];
Zero
or more
[:bits];
Zero
or more
//data _var is a variable
// red will be 0, green will be 2 and
// data_record is a structure type
} [id]
} [id]
45

Related parts for PCDIDE COMPILER