HP aC++/HP C Programmer's Guide (B3901-90036; A.06.26; September 2011)

Table 6 Examples
Preprocessing
Output
.d file location.d file nameCommand Line Specified
nonestdoutnoneaCC -c +make a.C
nonecurrent directorya.daCC -c -E -.i +maked a.C
a.icurrent directoryb.daCC -c -P +maked a.C -o b.o
a.i/tmp directoryc.daCC -c -P +maked a.C -o /tmp/c
+Make[d]
+Make[d]
The +Make[d] option directs a list of both the quote enclosed (" ") and angle bracket
enclosed (< >) header files upon which your source code depends to stdout. The list
is in a format accepted by the make command.
If +Maked is specified, the list is directed to a .d file. The .d file name prefix is the same
as that of the object file. The .d file is created in the same directory as the object file.
Usage:
Use +Maked when you also specify the -E or the -P option. When used with the -E
option, only dependency information is generated.
Table 7 Examples
Preprocessing Output.d file location.d file
name
Command Line Specified
nonestdoutnoneaCC -c +Make a.C
nonecurrent directorya.daCC -c -E -.i +Maked a.C
a.icurrent directoryb.daCC -c -P +Maked a.C -o b.o
a.i/tmp directoryc.daCC -c -P +Maked a.C -o /tmp/c
-P
-P
Using the -P option only preprocesses the files named on the command line without
invoking further phases. It leaves the result in corresponding files with the suffix .i.
For example, the following command preprocesses the file prog.C leaving the output
in the file prog.i. It does not compile the program.
aCC -P prog.C
Preprocessor Options 89