MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip
MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip
MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Using the <strong>Compiler</strong> on the Comm<strong>and</strong> Line<br />
TABLE 3-11: PREPROCESSOR OPTIONS (CONTINUED)<br />
Option Definition<br />
-include file Process file as input be<strong>for</strong>e processing the regular input file. In<br />
effect, the contents of file are compiled first. Any -D <strong>and</strong> -U<br />
options on the comm<strong>and</strong> line are always processed be<strong>for</strong>e<br />
-include file, regardless of the order in which they are<br />
written. All the -include <strong>and</strong> -imacros options are<br />
processed in the order in which they are written.<br />
-iprefix prefix Specify prefix as the prefix <strong>for</strong> subsequent -iwithprefix<br />
options.<br />
-isystem dir Add a directory to the beginning of the second include path,<br />
marking it as a system directory, so that it gets the same special<br />
treatment as is applied to the st<strong>and</strong>ard system directories.<br />
-iwithprefix dir Add a directory to the second include path. The directory’s<br />
name is made by concatenating prefix <strong>and</strong> dir, where prefix<br />
was specified previously with -iprefix. If a prefix has not yet<br />
been specified, the directory containing the installed passes of<br />
the compiler is used as the default.<br />
-iwithprefixbe<strong>for</strong>e<br />
dir<br />
Add a directory to the main include path. The directory’s name<br />
is made by concatenating prefix <strong>and</strong> dir, as in the case of<br />
-iwithprefix.<br />
-M Tell the preprocessor to output a rule suitable <strong>for</strong> make describing<br />
the dependencies of each object file. For each source file,<br />
the preprocessor outputs one make-rule whose target is the<br />
object file name <strong>for</strong> that source file <strong>and</strong> whose dependencies<br />
are all the #include header files it uses. This rule may be a<br />
single line or may be continued with \-newline if it is long. The<br />
list of rules is printed on st<strong>and</strong>ard output instead of the preprocessed<br />
C program.<br />
-M implies -E (see Section 3.5.2 “Options <strong>for</strong> Controlling<br />
the Kind of Output”).<br />
-MD Like -M but the dependency in<strong>for</strong>mation is written to a file <strong>and</strong><br />
compilation continues. The file containing the dependency<br />
in<strong>for</strong>mation is given the same name as the source file with a .d<br />
extension.<br />
-MF file When used with -M or -MM, specifies a file in which to write the<br />
dependencies. If no -MF switch is given, the preprocessor<br />
sends the rules to the same place it would have sent<br />
preprocessed output.<br />
When used with the driver options, -MD or -MMD, -MF,<br />
overrides the default dependency output file.<br />
-MG Treat missing header files as generated files <strong>and</strong> assume they<br />
live in the same directory as the source file. If -MG is specified,<br />
then either -M or -MM must also be specified. -MG is not<br />
supported with -MD or -MMD.<br />
-MM Like -M but the output mentions only the user header files<br />
included with #include “file”. System header files included<br />
with #include are omitted.<br />
-MMD Like -MD except mention only user header files, not system<br />
header files.<br />
© 2008 <strong>Microchip</strong> Technology Inc. DS51284H-page 53