SW500009 Microchip Technology, SW500009 Datasheet - Page 56

HI-TECH FOR DSPIC/PIC24

SW500009

Manufacturer Part Number
SW500009
Description
HI-TECH FOR DSPIC/PIC24
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC24 & DsPICr
Datasheet

Specifications of SW500009

Supported Families
PIC24
Core Architecture
PIC, DsPIC
Software Edition
Standard
Kit Contents
Software And Docs
Tool Type
Compiler
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
DSPIC3X/PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
025
778-1003
778-1003
Supported Data Types and Variables
double by HI-TECH C.
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.4.2 Bit Data Types and Variables
HI-TECH PICC STDsupports bit integral types which can hold the values 0 or 1. Single bit vari-
ables may be declared using the keyword bit. bit objects declared within a function, for example:
42
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";
binary
octal
decimal
hexadecimal
Radix
0bnumber or 0Bnumber
0number
number
0xnumber or 0Xnumber
Table 3.2: Radix formats
// "one" in ROM, produces warning
// "two" different to the above
Format
0b10011010
0763
129
0x2F
Example
C Language Features

Related parts for SW500009