SW500010 Microchip Technology, SW500010 Datasheet - Page 41

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
PICC Command-line Driver
2.5.5 Changing Message Behaviour
Both the attributes of individual messages and general settings for messaging system can be modified
during compilation. There are both driver command-line options and C pragmas that can be used to
achieve this.
2.5.5.1 Disabling Messages
Each warning message has a default number indicating a level of importance. This number is speci-
fied in the MDF and ranges from -9 to 9. The higher the number, the more important the warning.
driver option, see Section 2.6.58. Any warnings whose level is below that of the current threshold are
not displayed. The default threshold is 0 which implies that only warnings with a warning level of 0
Warning messages can be disabled by adjusting the warning level threshold using the --WARN
main.c:
(492) attempt to position absolute psect "text" is illegal (error)
Notice that now all message follow a more uniform format and are displayed on a single
line.
The user now sets the environment variable HTC_WARN_FORMAT to be the following
string. (Under Windows, this can be performed via the Control Panel’s System panel.)
%a %n %l %f %s
and the project recompiled. The following output will be displayed.
parser 362 12 main.c redundant "&" applied to array (492)
attempt to position absolute psect "text" is illegal (error)
Notice that the format of the warning was changed, but that of the error message was
not. The warning format now follows the specification of the environment variable. The
application name (parser) was substituted for the %a placeholder, the message number
(362) substituted the %n placeholder, etc.
The option --ERRFORMAT="%a %n %l %f %s" is then added to the driver com-
mand line and the following output is observed.
parser 362 12 main.c redundant "&" applied to array
linker 492
Note that now the warning and error formats have changed to that requested. For the
case of the linker error, there is no line number information so the replacement for this
placeholder is left blank.
12:
attempt to position absolute psect "text" is illegal
(362) redundant "&" applied to array (warning)
Compiler Messages
41

Related parts for SW500010