HP aC++/HP C A.06.25 Programmer's Guide

#include <iostream.h>
void main(){
int i, j;
#ifdef DEBUGFLAG
int call_count=0;
#endif
/* ... */
}
-E
-E
Using the -E option runs only the preprocessor on the named C++ files and sends the
result to standard output (stdout).
An exception to this rule is when-E is used with either the +m[d] or +M[d] option,
the only output is the make dependency information. Unlike the -P option, the output
of -E contains #line entries indicating the original file and line numbers.
Redirecting Output From This Option
Use the -.suffix option to redirect the output of this option.
+m[d] and +make[d]
+m[d]
The +m[d] option directs a list of the quote enclosed (" ") header files upon which your
source code depends to stdout. The list is in a format accepted by the make command.
If +md 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 +m[d] when you also specify the -E or the -P option. When used with the -E
option, only dependency information is generated.
Table 2-5 lists examples of the +m[d] option.
Table 2-5 Examples
Preprocessing
Output
.d file location.d file nameCommand Line Specified
none
stdout
none
aCC -c +m a.C
nonecurrent directory
a.daCC -c -E -.i +md a.C
a.i
current directory
b.daCC -c -P +md a.C -o b.o
a.i/tmp directoryc.daCC -c -P +md a.C -o /tmp/c
98 Command-Line Options