SW500010 Microchip Technology, SW500010 Datasheet - Page 433

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
Error and Warning Messages
(762) constant truncated when assigned to bitfield
A constant value is too large for a bitfield structure member to which it is being assigned, e.g.
(763) constant left operand to "? :" operator
The left operand to a conditional operator ? is constant, thus the result of the tertiary operator ?:
will always be the same, e.g.:
(764) mismatched comparison
A comparison is being made between a variable or expression and a constant value which is not in
the range of possible values for that expression, e.g.:
(765) degenerate unsigned comparison
There is a comparison of an unsigned value with zero, which will always be true or false, e.g.:
will always be true, because an unsigned value can never be less than zero.
(766) degenerate signed comparison
There is a comparison of a signed value with the most negative value possible for this type, such
that the comparison will always be true or false, e.g.:
will always be true, because an 8 bit signed char has a maximum negative value of -128.
struct INPUT {
} input_grp;
input_grp.a = 0x12;
/ * 12h cannot fit into a 3-bit wide object * /
a = 8 ? b : c;
unsigned char c;
if(c > 300)
unsigned char c;
if(c >= 0)
char c;
if(c >= -128)
unsigned a : 3;
unsigned b : 5;
close();
/ * this is the same as saying a = b; * /
/ * oops -- how can this be true? * /
(Code Generator)
(Code Generator)
(Code Generator)
(Code Generator)
(Code Generator)
433

Related parts for SW500010