11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Error and Warning Messages}if(a) /* woops -- a has never been assigned a value */process();(749) unknown register name * (Linker)This is an internal compiler error. Contact HI-TECH Software technical support with details.(750) constant operand to || or && (Code Generator)One operand to the logical operators || or && is a constant. Check the expression for missing orbadly placed parentheses. This message may also occur if the global optimizer is enabled and one ofthe operands is an auto or static local variable whose value has been tracked by the code generator,e.g.:{int a;a = 6;if(a || b) /* a is 6, therefore this is always true */b++;(751) arithmetic overflow in constant expression (Code Generator)A constant expression has been evaluated by the code generator that has resulted in a value that istoo big for the type of the expression. The most common code to trigger this warning is assignmentsto signed data types. For example:signed char c;c = 0xFF;As a signed 8-bit quantity, c can only be assigned values -128 to 127. The constant is equal to 255and is outside this range. If you mean to set all bits in this variable, then use either of:c = ~0x0;c = -1;which will set all the bits in the variable regardless of the size of the variable and without warning.This warning can also be triggered by intermediate values overflowing. For example:unsigned int i; /* assume ints are 16 bits wide */i = 240 * 137; /* this should be okay, right? */305

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!