SW006012 Microchip Technology, SW006012 Datasheet - Page 155

C COMPILER FOR DSPIC30F FAMILY

SW006012

Manufacturer Part Number
SW006012
Description
C COMPILER FOR DSPIC30F FAMILY
Manufacturer
Microchip Technology
Type
MPLAB® C30 Compilerr
Series
PIC24 & DsPICr
Datasheets

Specifications of SW006012

Supported Families
PIC24, DsPIC30F And DsPIC33F
Core Architecture
PIC, DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Tool Type
Compiler
Processor Series
PIC24, dsPIC
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
dsPIC30F
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
© 2007 Microchip Technology Inc.
__
Error Messages
__
Description:
Prototype:
Argument:
Return Value:
Assembler Opera-
tor / Machine
Instruction:
Error Messages
__
Description:
Prototype:
Argument:
Return Value:
Assembler Opera-
tor / Machine
Instruction:
__
Description:
Prototype:
Argument:
Return Value:
builtin_psvoffset (Continued)
builtin_readsfr
builtin_return_address
builtin_sac
The following error message is produced when this function is used
incorrectly:
“Argument to __builtin_psvoffset() is not the address of an
object in code, psv, or eedata section”.
The argument must be an explicit object address.
For example, if obj is object in an executable or read-only section, the
following syntax is valid:
unsigned page = __builtin_psvoffset(&obj);
Reads the SFR.
unsigned int __builtin_readsfr(const void *p);
p
Returns the SFR.
readsfr
The following error message is produced when this function is used
incorrectly:
Returns the return address of the current function, or of one of its call-
ers. For the level argument, a value of 0 yields the return address of
the current function, a value of 1 yields the return address of the caller
of the current function, and so forth. When level exceeds the current
stack depth, 0 will be returned. This function should only be used with a
non-zero argument for debugging purposes.
int __builtin_return_address (const int level);
level
Returns the return address of the current function, or of one of its call-
ers.
return_address
Shifts value by shift (a literal between -8 and 7) and returns the
value.
For example:
Might generate:
int __builtin_sac(int value, int shift);
value
shift
Returns the shifted result to an accumulator.
register int value asm("A");
int result;
result = __builtin_sac(value,3);
sac A, #3, w0
object address
MPLAB C30 Built-in Functions
Number of frames to scan up the call stack.
Integer number to be shifted.
Literal amount to shift.
DS51284F-page 149

Related parts for SW006012