SW500011 Microchip Technology, SW500011 Datasheet - Page 69

HI-TECH X PRO FOR PIC32

SW500011

Manufacturer Part Number
SW500011
Description
HI-TECH X PRO FOR PIC32
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC32r
Datasheet

Specifications of SW500011

No. Of User Licenses
1
Supported Families
PIC32
Core Architecture
PIC
Supported Hosts
Windows XP, Vista, Linux, Mac OS X
Software Edition
Professional
Kit Contents
Software And Docs
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC32 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
032
778-1007
778-1007
C Language Features
overflow. The suffix l or L may be used with the constant to indicate that it must be assigned either
a signed long or unsigned long type, and the suffix u or U may be used with the constant to
indicate that it must be assigned an unsigned type, and both l or L and u or U may be used to indicate
unsigned long int type.
constant. The suffixes l or L specify a long double type which is considered an identical type to
double by HI-TECH C PRO for the PIC32 MCU Family.
constant has char type. Multi-byte character constants are not supported.
world". The type of string constants is const char [] and the strings are stored in the program
memory. Assigning a string constant to a non-const char pointer will generate a warning from the
compiler. For example:
Defining and initializing a non-const array (i.e. not a pointer definition) with a string, for example:
produces an array in data space which is initialised at startup with the string "two" (copied from
program space), whereas a constant string used in other contexts represents an unnamed const-
qualified array, accessed directly in program space.
sequences, except where the strings are used to initialise an array residing in the data space as shown
in the last statement in the previous example.
by the compiler. Thus:
assigned the pointer with the string "hello world".
3.3.2 Bit Data Types and Variables
HI-TECH C PRO for the PIC32 MCU Familysupports bit integral types which can hold the values
0 or 1. Single bit variables may be declared using the keyword bit. bit objects declared within a
function, for example:
Any integral constant will have a type which is the smallest type that can hold the value without
Floating-point constants have double type unless suffixed by f or F, in which case it is a float
Character constants are enclosed by single quote characters ’, for example ’a’. A character
String constants or string literals are enclosed by double quote characters ", for example "hello
HI-TECH C will use the same storage location and label for strings that have identical character
Two adjacent string constants (i.e. two strings separated only by white space) are concatenated
char * cp= "one";
const char * ccp= "two"; // "two" in ROM, correct
char ca[]= "two";
const char * cp = "hello " "world";
// "one" in ROM, produces warning
// "two" different to the above
Supported Data Types and Variables
69

Related parts for SW500011