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

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
#BUILD
Syntax:
Elements:
Purpose:
#BUILD(segment = address)
#BUILD(segment = address, segment = address)
#BUILD(segment = start:end)
#BUILD(segment = start: end, segment = start: end)
#BUILD(nosleep)
#BUILD(segment = size) : For STACK use only
#BUILD(ALT_INTERRUPT)
segment is one of the following memory segments which may be assigned a
location: RESET, INTERRUPT , or STACK
address is a ROM location memory address. Start and end are used to specify
a range in memory to be used. Start is the first ROM location and end is the
last ROM location to be used.
RESET will move the compiler's reset vector to the specified location.
location. This just changes the location the compiler puts it's reset and ISR, it
doesn't change the actual vector of the PIC. If you specify a range that is larger
than actually needed, the extra space will not be used and prevented from use
by the compiler.
STACK configures the range (start and end locations) used for the stack, if not
specified the compiler uses the last 256 bytes. The STACK can be specified by
only using the size parameters. In this case, the compiler uses the last RAM
locations on the chip and builds the stack below it.
ALT_INTERRUPT will move the compiler's interrupt service routine to the
alternate location, and configure the PIC to use the alternate location.
Nosleep is used to prevent the compiler from inserting a sleep at the end of main()
same in each compilation unit.
These directives are commonly used in bootloaders, where the reset and
interrupt needs to be moved to make space for the bootloading application.
When linking multiple compilation units, this directive must appear exactly the
INTERRUPT will move the compiler's interrupt service routine to the specified
103

Related parts for PCDIDE COMPILER