SW500007 Microchip Technology, SW500007 Datasheet - Page 23

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
PICC-18 Command-line Driver
The -E option also allows errors to be appended to an existing file by specifying an addition charac-
ter, +, at the start of the error filename, for example:
If you wish to compile several files and combine all of the errors generated into a single text file, use
the -E option to create the file then use -E+ when compiling all the other source files. For example,
to compile a number of files with all errors combined into a file called project.err, you could use
the -E option as follows:
The file project.err will contain any errors from main.c, followed by the errors from part1.c
and then asmcode.as, for example:
2.4.5 -Gfile: Generate Source-level Symbol File
The -G option generates a source-level symbol file (i.e. a file which allows tools to determine which
line of source code is associated with machine code instructions, and determine which source-level
variable names correspond with areas of memory, etc.) for use with supported debuggers and sim-
ulators such as HI-TIDE
same base name as the first source or object file specified on the command line, and an extension of
.sym. For example the option -GTEST.SYM generates a symbol file called test.sym. Symbol files
generated using the -G option include source-level information for use with source-level debuggers.
the -G option. The option is also required at the link stage, if this is performed separately. For
example:
Note that all source files for which source-level debugging is required should be compiled with
PICC18 --CHIP=18F242 -E+x.err y.c
PICC18 --CHIP=18F242 -Eproject.err -O -C main.c
PICC18 --CHIP=18F242 -E+project.err -O -C part1.c
PICC18 --CHIP=18F242 -E+project.err -C asmcode.as
main.c 11 22: ) expected
main.c 63 0: ; expected
part1.c 5 0: type redeclared
part1.c 5 0: argument list conflicts with prototype
asmcode.as 14 0: Syntax error
asmcode.as 355 0: Undefined symbol _putint
PICC18 --CHIP=18F242 -G -C test.c
PICC18 --CHIP=18F242 -C module1.c
PICC18 --CHIP=18F242 -Gtest.sym test.obj module1.obj
R
and MPLAB
R
. If no filename is given, the symbol file will have the
PICC18 Compiler Options
9

Related parts for SW500007