SW500008 Microchip Technology, SW500008 Datasheet - Page 33

PICC-18 STD

SW500008

Manufacturer Part Number
SW500008
Description
PICC-18 STD
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500008

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Standard
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
015
778-1001
778-1001
PICC-18 Command-line Driver
Using the previous source code, the output from the compiler when using the above environment
variables would be:
Remember that if these environment variables are set in a batch file, you must prepend the specifiers
with an additional percent character to stop the specifiers being interpreted immediately by DOS,
e.g. the filename specifier would become %%f.
2.4.32 --ERRORS=number: Maximum Number of Errors
This option sets the maximum number of errors each component of the compiler will display before
stopping. By default, up to 20 error messages will be displayed.
2.4.33 --FILL=opcode: Fill Unused Program Memory
This option allows specification of a hexadecimal opcode that can be used to fill all unused program
memory locations with a known code sequence. Multi-byte codes should be entered in little endian
byte order.
set HTC_WARN_FORMAT=WARNING: file %f; line %l; column %c; %s
set HTC_ERR_FORMAT=ERROR: %a: file %f; line %l; column %c; %n %s
ERROR: parser: file x.c; line 4; column 6; (192) undefined identifier: xFF
T
One practical application of this is filling unused space with instructions to could correct
the program if it starts executing in memory that is out-of-bounds. In this event, it might
be desirable to jump to an error-logging routine or invoke reset. The PIC18 opcode for
the RESET instruction is 00FFh. To fill all unused program memory locations with this
UT RIAL
Table 2.6: Error format specifiers
Specifier
%f
%l
%c
%s
%a
%n
Filename
Line number
Column number
Error string
Application name
Message number
Expands To
PICC18 Compiler Options
19

Related parts for SW500008