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

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
#LINE
Syntax:
Elements:
Purpose:
Examples:
Example Files:
Also See:
#LOCATE
Syntax:
Elements:
Purpose:
Examples:
Example Files:
Also See:
#LOCATE id=x
id is a C variable,
x is a constant memory address
#LOCATE allocates a C variable to a specified address. If the C variable was not
previously defined, it will be defined as an INT8.
A special form of this directive may be used to locate all A functions local variables
starting at a fixed location.
Use: #LOCATE Auto = address
This directive will place the indirected C variable at the requested address.
// This will locate the float variable at 50-53
// and C will not use this memory for other
// variables automatically located.
float x;
#locate x=0x 800
ex_glint.c
#BYTE, #BIT, #RESERVE,
#LINE number filename
Number is non-negative decimal integer. File name is optional.
The C pre-processor informs the C Compiler of the location in your source code.
This code is simply used to change the value of _LINE_ and _FILE_ variables.
1. void main(){
be reported.
2. #line 7 "hello.c"
and it sets the line 7 as current line and hello.c as current file
None
None
#line 10
#WORD
//
//
// line number in the source file hello.c
specifies the line number that should
for the following line of input
125

Related parts for PCDIDE COMPILER