SW500010 Microchip Technology, SW500010 Datasheet - Page 354

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
(184) calling an interrupt function is illegal
A function qualified interrupt can’t be called from other functions. It can only be called by
a hardware (or software) interrupt. This is because an interrupt function has special function
entry and exit code that is appropriate only for calling from an interrupt. An interrupt function
can call other non-interrupt functions.
(185) function does not take arguments
This function has no parameters, but it is called here with one or more arguments, e.g.:
(186) too many function arguments
This function does not accept as many arguments as there are here.
(187) too few function arguments
This function requires more arguments than are provided in this call, e.g.:
(188) constant expression required
In this context an expression is required that can be evaluated to a constant at compile time, e.g.:
354
int get_value(void);
void main(void)
{
}
void add(int a, int b);
add(5, 7, input);
void add(int a, int b);
add(5);
int a;
switch(input) {
}
int input;
input = get_value(6);
case a:
input++;
/ * oops!
can’t use variable as part of a case label * /
/ * call has too many arguments * /
/ * oops --
/ * this call needs more arguments * /
parameter should not be here * /
Error and Warning Messages
(Parser, Code Generator)
(Parser)
(Parser)
(Parser)
(Parser)

Related parts for SW500010