HP aC++/HP C A.06.20 Programmer's Guide
touch foo.c ; cc -E -dM foo.c
-Dname
-Dname[=def]
name is the symbol name that is defined for the preprocessor.
def is the definition of the symbol name (name).
The -Dname option defines a symbol name (name) to the preprocessor, as if defined
by the preprocessing directive#define.
If no definition (def) is given, the name is defined as 1.
NOTE: __ia64 and __HP_aCC are defined automatically.
Example:
The following example defines the preprocessor symbol DEBUGFLAG and gives it the
value 1.
aCC -DDEBUGFLAG file.C
The following program uses this symbol:
#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]
96 Command-Line Options