SW500007 Microchip Technology, SW500007 Datasheet - Page 32

PICC-18 PRO

SW500007

Manufacturer Part Number
SW500007
Description
PICC-18 PRO
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500007

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC18
Tool Function
Compiler
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
PIC18 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
015P
778-1002
778-1002
PICC18 Compiler Options
2.4.31 --ERRFORMAT=format: Define Format for Compiler Messages
If the --ERRFORMAT option is not used, the default behaviour of the compiler is to display any errors
in a “human readable” format line with a caret “^” and error message pointing out the offending
characters in the source line, for example:
This standard format is perfectly acceptable to a person reading the error output, but is not generally
usable with environments which support compiler error handling. The following sections indicate
how this option may be used in such situations.
format of warning and advisory messages, respectively.
2.4.31.1 Using the Format Options
Using the these options instructs the compiler to generate error, warning and advisory messages in a
format which is acceptable to some text editors and development environments.
option, the error output would be:
indicating that the error number 192 occurred in file x.c at line 4, offset 9 characters into the state-
ment. The second numeric value - the column number - is relative to the left-most non-space charac-
ter on the source line. If an extra space or tab character were inserted at the start of the source line,
the compiler would still report an error at line 4, column 9.
2.4.31.2 Modifying the Standard Format
If the message format does not meet your editor’s requirement, you can redefine its format by either
using the --ERRFORMAT, --WARNFORMAT or --MSGFORMAT option or by setting the environment vari-
ables: HTC_ERR_FORMAT, HTC_WARN_FORMAT or HTC_MSG_FORMAT. These options are in the form of
a printf-style string in which you can use the specifiers shown in Table 2.6. For example:
The column number is relative to the left-most non-space character on the source line.
variables from within DOS can be done with the following DOS commands:
18
This section is also applicable to the --WARNFORMAT and --MSGFORMAT options which adjust the
If the same source code as used in the example above were compiled using the --ERRFORMAT
The environment variables can be set in a similar way, for example setting the environment
x.c: main()
x.c 4: (192) undefined identifier: xFF
--ERRFORMAT=”file %f; line %l; column %c; %s”
4: _PA = xFF;
^ (192) undefined identifier: xFF
PICC-18 Command-line Driver

Related parts for SW500007