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.
16-Bit C <strong>Compiler</strong> User’s Guide<br />
TABLE 3-11: PREPROCESSOR OPTIONS (CONTINUED)<br />
Option Definition<br />
-MP This option instructs CPP to add a phony target <strong>for</strong> each dependency<br />
other than the main file, causing each to depend on nothing.<br />
These dummy rules work around errors make gives if you<br />
remove header files without updating the make-file to match.<br />
This is typical output:<br />
test.o: test.c test.h<br />
test.h:<br />
-MQ Same as -MT, but it quotes any characters which are special to<br />
make.<br />
-MQ '$(objpfx)foo.o' gives $$(objpfx)foo.o:<br />
foo.c<br />
The default target is automatically quoted, as if it were given<br />
with -MQ.<br />
-MT target Change the target of the rule emitted by dependency<br />
generation. By default, CPP takes the name of the main input<br />
file, including any path, deletes any file suffix such as .c, <strong>and</strong><br />
appends the plat<strong>for</strong>m’s usual object suffix. The result is the<br />
target.<br />
An -MT option will set the target to be exactly the string you<br />
specify. If you want multiple targets, you can specify them as a<br />
single argument to -MT, or use multiple -MT options.<br />
For example:<br />
-MT '$(objpfx)foo.o' might give $(objpfx)foo.o:<br />
foo.c<br />
-nostdinc Do not search the st<strong>and</strong>ard system directories <strong>for</strong> header files.<br />
Only the directories you have specified with -I options (<strong>and</strong> the<br />
current directory, if appropriate) are searched. (See<br />
Section 3.5.10 “Options <strong>for</strong> Directory Search”) <strong>for</strong><br />
in<strong>for</strong>mation on -I.<br />
By using both -nostdinc <strong>and</strong> -I-, the include-file search<br />
path can be limited to only those directories explicitly specified.<br />
-P Tell the preprocessor not to generate #line directives. Used<br />
with the -E option (see Section 3.5.2 “Options <strong>for</strong><br />
Controlling the Kind of Output”).<br />
-trigraphs Support ANSI C trigraphs. The -ansi option also has this<br />
effect.<br />
-Umacro Undefine macro macro. -U options are evaluated after all -D<br />
options, but be<strong>for</strong>e any -include <strong>and</strong> -imacros options.<br />
-undef Do not predefine any nonst<strong>and</strong>ard macros (including<br />
architecture flags).<br />
3.5.8 Options <strong>for</strong> Assembling<br />
The following options control assembler operations.<br />
TABLE 3-12: ASSEMBLY OPTIONS<br />
Option Definition<br />
-Wa,option Pass option as an option to the assembler. If option contains<br />
commas, it is split into multiple options at the commas.<br />
DS51284H-page 54 © 2008 <strong>Microchip</strong> Technology Inc.