Microchip Technology XC8 Standard Compiler (Workstation) SW006021-1 SW006021-1 사용자 설명서
제품 코드
SW006021-1
MPLAB
®
XC8 C Compiler User’s Guide
DS52053B-page 430
2012 Microchip Technology Inc.
(693) interrupt level may only be 0 (default) or 1
(Code Generator)
The only possible interrupt levels are 0 or 1. Check to ensure that all
interrupt_level
interrupt_level
pragmas use these levels.
#pragma interrupt_level 2 /* oops -- only 0 or 1 */
void interrupt isr(void)
{
/* isr code goes here */
}
(694) no interrupt strategy available
(Code Generator)
The device does not support saving and subsequent restoring of registers during an
interrupt service routine.
interrupt service routine.
(695) duplicate case label (*)
(Code Generator)
There are two case labels with the same value in this switch statement, for example:
switch(in) {
case ’0’: /* if this is case ’0’... */
b++;
break;
case ’0’: /* then what is this case? */
b--;
break;
}
(696) out-of-range case label (*)
(Code Generator)
This case label is not a value that the controlling expression can yield, and thus this
label will never be selected.
label will never be selected.
(697) non-constant case label
(Code Generator)
A case label in this switch statement has a value which is not a constant.
(698) bit variables must be global or static
(Code Generator)
A bit variable cannot be of type auto. If you require a bit variable with scope local
to a block of code or function, qualify it static, for example:
to a block of code or function, qualify it static, for example:
bit proc(int a)
{
bit bb; /* oops -- this should be: static bit bb; */
bb = (a > 66);
return bb;
}
(699) no case labels in switch
(Code Generator)
There are no case labels in this switch statement, for example:
switch(input) {
} /* there is nothing to match the value of input */
(700) truncation of enumerated value
(Code Generator)
An enumerated value larger than the maximum value supported by this compiler was
detected and has been truncated, for example:
detected and has been truncated, for example:
enum { ZERO, ONE, BIG=0x99999999 } test_case;
(701) unreasonable matching depth
(Code Generator)
This is an internal compiler error. Contact Microchip Technical Support with details.