SW500010 Microchip Technology, SW500010 Datasheet - Page 432

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
will assign the value 4 to a, then , as the value of the assignment is always true, the comparison can
be omitted and the assignment to b always made. Did you mean:
which checks to see if a is equal to 4.
(759) expression generates no code
This expression generates no output code. Check for things like leaving off the parentheses in a
function call, e.g.:
Some devices require that special function register need to be read to clear hardware flags. To
accommodate this, in some instances the code generator does produce code for a statement which
only consists of a variable ID. This may happen for variables which are qualified as volatile.
Typically the output code will read the variable, but not do anything with the value read.
(760) portion of expression has no effect
Part of this expression has no side effects, and no effect on the value of the expression, e.g.:
(761) sizeof yields 0
The code generator has taken the size of an object and found it to be zero. This almost certainly
indicates an error in your declaration of a pointer, e.g. you may have declared a pointer to a zero
length array. In general, pointers to arrays are of little use. If you require a pointer to an array of
objects of unknown length, you only need a pointer to a single object that can then be indexed or
incremented.
432
/ * this can never be false;
if(a == 4)
int fred;
fred;
int a, b, c;
a = b,c;
always perform the true statement * /
b = 6;
/ * this is valid, but has no effect at all * /
/ * “b” has no effect,
was that meant to be a comma? * /
Error and Warning Messages
(Code Generator)
(Code Generator)
(Code Generator)

Related parts for SW500010