SW500010 Microchip Technology, SW500010 Datasheet - Page 74

HI-TECH C PRO FOR PIC10/12/16

SW500010

Manufacturer Part Number
SW500010
Description
HI-TECH C PRO FOR PIC10/12/16
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC10/12/16r
Datasheets

Specifications of SW500010

Supported Families
PIC10, PIC12, PIC16
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC10/12/16
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC10, PIC12, PIC14, PIC16, PIC16E
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
019P
778-1006
778-1006
Supported Data Types and Variables
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.
float constant. The suffixes l or L specify a long double type which is considered an identical
type to 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:
74
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
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";
char ca[]= "two";
binary
octal
decimal
hexadecimal
Radix
0bnumber or 0Bnumber
0number
number
0xnumber or 0Xnumber
Table 3.2: Radix formats
// "one" in ROM, produces warning
// "two" in ROM, correct
// "two" different to the above
Format
0b10011010
0763
129
0x2F
Example
C Language Features

Related parts for SW500010