SW006012 Microchip Technology, SW006012 Datasheet - Page 20

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 14
®
C30 User’s Guide
deprecated.c:4: warning: `i' is deprecated (declared
i is still defined in the resulting object file in the normal way.
far
The far attribute tells the compiler that the variable will not necessarily be allocated in
near (first 8 KB) data space, (i.e., the variable can be located anywhere in data
memory).
mode (
This attribute specifies the data type for the declaration as whichever type corresponds
to the mode mode. This in effect lets you request an integer or floating point type
according to its width. Valid values for mode are as follows:
This attribute is useful for writing code that is portable across all supported MPLAB C30
targets. For example, the following function adds two 32-bit signed integers and returns
a 32-bit signed integer result:
typedef int
int32
add32(int32 a, int32 b)
You may also specify a mode of byte or __byte__ to indicate the mode correspond-
ing to a one-byte integer, word or __word__ for the mode of a one-word integer, and
pointer or __pointer__ for the mode used to represent pointers.
near
The near attribute tells the compiler that the variable is allocated in near data space
(the first 8 KB of data memory). Such variables can sometimes be accessed more
efficiently than variables not allocated (or not known to be allocated) in near data
space.
int num
noload
The noload attribute indicates that space should be allocated for the variable, but that
initial values should not be loaded. This attribute could be useful if an application is
designed to load a variable into memory at runtime, such as from a serial EEPROM.
int table1[50]
at deprecated.c:1)
{
}
mode
Mode
DF
SF
QI
HI
SI
DI
return(a+b);
__
attribute
)
__
attribute
__
attribute
__
((near));
__
16 bits
32 bits
64 bits
32 bits
64 bits
Width
8 bits
((
__
__
((noload)) = { 0 };
mode
__
(SI))) int32;
MPLAB
© 2007 Microchip Technology Inc.
long double
long long
float
char
long
int
®
C30 Type

Related parts for SW006012