SW500010 Microchip Technology, SW500010 Datasheet - Page 40

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
Compiler Messages
--WARNFORMAT and --ERRFORMAT, see Section 2.6.28. These options take a string as their
argument. The option strings are formatted, and can use the same placeholders, as their variable
counterparts.
40
Environment variables, in turn, may be overridden by the driver options: --MSGFORMAT,
to specify the placeholders, as DOS interprets a single percent character as an argument
and will not pass this on to the compiler. For example:
--ERRFORMAT=”file %%f:
T
C
the parser and an error from the linker. By default the following messages are displayed
when compiling.
main.c:
17:
^ (362) redundant "&" applied to array (warning)
(492) attempt to position absolute psect "text" is illegal
Notice that the format of the messages from the parser and linker differ since the parser
is able to identify the particular line of offending source code. The parser has indicated
the name of the file, indicated the function in which the warning is located, reproduced
the line of source code and highlighted the position at which the warning was first
detected, as well as show the actual warning message string.
The -E option is now used and the compiler issues the same messages, but in a new
format as dictated by the -E option. Now environment variables are set and no other
messaging driver options were specified so the default -E format is used.
UT RIAL
HANGING
ip = &b;
M
main()
ESSAGE
Placeholder
%a
%c
%f
%l
%n
%s
F
Table 2.4: Messaging placeholders
ORMATS
line %%l”
A project is compiled, but produces a warning from
application name
column number
filename
line number
message number
message string (from MDF)
Replacement
PICC Command-line Driver

Related parts for SW500010