SW006012 Microchip Technology, SW006012 Datasheet - Page 144

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
MPLAB
DS51284F-page 138
®
C30 User’s Guide
__
Error Messages
__
Description:
Prototype:
Argument:
Return Value:
Assembler Opera-
tor / Machine
Instruction:
__
Description:
Prototype:
Argument:
Return Value:
Assembler Opera-
tor / Machine
Instruction:
__
Description:
Prototype:
Argument:
Return Value:
Assembler Opera-
tor / Machine
Instruction:
Error Messages
builtin_divmodud (Continued)
builtin_divsd
builtin_divud
builtin_dmaoffset
None.
Computes the quotient num / den. A math error exception occurs if den
is zero. Function arguments are signed, as is the function result. The
command-line option -Wconversions can be used to detect unex-
pected sign conversions.
int __builtin_divsd(const long num, const int den);
num numerator
den denominator
Returns the signed integer value of the quotient num / den.
div.sd
Computes the quotient num / den. A math error exception occurs if den
is zero. Function arguments are unsigned, as is the function result. The
command-line option -Wconversions can be used to detect unex-
pected sign conversions.
unsigned int __builtin_divud(const unsigned
num numerator
den denominator
Returns the unsigned integer value of the quotient num / den.
div.ud
Obtains the offset of a symbol within DMA memory.
For example:
Might generate:
unsigned int __builtin_dmaoffset(const void *p);
*p
Returns the offset to an accumulator.
dmaoffset
An error message will be displayed if the result is not an accumulator
register.
long num, const unsigned int den);
unsigned int result;
char buffer[256] __attribute__((space(dma)));
result = __builtin_dmaoffset(&buffer);
mov #dmaoffset(buffer), w0
pointer to DMA address value
© 2007 Microchip Technology Inc.

Related parts for SW006012