SW500009 Microchip Technology, SW500009 Datasheet - Page 22

HI-TECH FOR DSPIC/PIC24

SW500009

Manufacturer Part Number
SW500009
Description
HI-TECH FOR DSPIC/PIC24
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC24 & DsPICr
Datasheet

Specifications of SW500009

Supported Families
PIC24
Core Architecture
PIC, DsPIC
Software Edition
Standard
Kit Contents
Software And Docs
Tool Type
Compiler
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
DSPIC3X/PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
025
778-1003
778-1003
PICC Compiler Options
2.4.2 -Dmacro: Define Macro
The -D option is used to define a preprocessor macro on the command line, exactly as if it had
been defined using a #define directive in the source code. This option may take one of two forms,
-Dmacro which is equivalent to:
placed at the top of each module compiled using this option, or -Dmacro=text which is equivalent
to:
where text is the textual substitution required. Thus, the command:
will compile test.c with macros defined exactly as if the C source code had included the directives:
2.4.3 -Efile: Redirect Compiler Errors to a File
This option has two purposes. The first is to change the format of displayed messages. The second
is to optionally allow messages to be directed to a file as some editors do not allow the standard
command line redirection facilities to be used when invoking the compiler.
messages (errors, warnings etc) will be printed. For example, to compile x.c and redirect all errors
to x.err, use the command:
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:
8
The gernal form of messages produced with the -E option in force is:
filename line_number: (message number) message string (message type)
If a filename is specified immediately after -E, it is treated as the name of a file to which all
#define macro 1
#define macro text
PICC --CHIP=16F877A -Ddebug -Dbuffers=10 test.c
#define debug
#define buffers 10
PICC --CHIP=16F877A -Ex.err x.c
PICC --CHIP=16F877A -E+x.err y.c
1
PICC Command-line Driver

Related parts for SW500009