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

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
#OPT
Syntax:
Elements:
Purpose:
Examples:
Example Files:
Also See:
#ORG
Syntax:
Elements:
Purpose:
#OPT n
All dsPIC30/dsPIC33/PIC24 Devices: n is the optimization level 0-9
The optimization level is set with this directive. This setting applies to the entire
program and may appear anywhere in the file. The default is 9 for full optimization.
Levels 10 and 11 are for extended optimization. It may be used to reduce optimization
below default if it is suspected that an optimization is causing a flaw in the code.
#opt 5
None
None
#ORG start, end
#ORG segment
#ORG start, end {}
#ORG start, end auto=0
#ORG start,end DEFAULT
#ORG DEFAULT
start is the first ROM location (word address) to use, end is the last ROM location,
segment is the start ROM location from a previous #ORG
This directive will fix the following function or constant declaration into a specific
ROM area. End may be omitted if a segment was previously defined if you only
want to add another function to the segment.
Follow the ORG with a {} to only reserve the area with nothing inserted by the compiler.
The RAM for a ORG'ed function may be reset to low memory so the local variables
and scratch variables are placed in low memory. This should only be used if the
ORG'ed function will not return to the caller. The RAM used will overlap the RAM
of the main program. Add a AUTO=0 at the end of the #ORG line.
If the keyword DEFAULT is used then this address range is used for all functions
user and compiler generated from this point in the file until a #ORG DEFAULT is
encountered (no address range). If a compiler function is called from the
generated code while DEFAULT is in effect the compiler generates a new version
of the function within the specified address range.
When linking multiple compilation units be aware this directive applies to the final
object file. It is an error if any #ORG overlaps between files unless the #ORG
matches exactly.
or
or
or
or
127

Related parts for PCDIDE COMPILER