HP aC++/HP C A.06.25 Programmer's Guide
aCC -tC,/users/proj/ecom file.C
• Substituting for all Subprocesses:
The following example compiles file.C and specifies that the characters /new/
aCC should be used as a prefix to all the subprocesses of HP aC++. For example,
/new/aCC/ecom runs instead of the default /opt/aCC/lbin/ecom.
aCC -tx,/new/aCC file.C
-Wx,args
-Wx,arg1[,arg2,..,argn]
The -Wx,args option passes the arguments arg1 through argn to the subprocess x
of the compilation.
Each argument, arg1, arg2, through argn takes the form:
-argoption[,argvalue]
where:
• argoption is the name of an option recognized by the subprocess.
• argvalue is a separate argument to argoption, where necessary.
The parameter, x, is one or more identifiers indicating a subprocess or subprocesses.
The value of x can be one or more of the following:
Table 2-8 Identifiers
Descriptionx
Assembler (standard suffix is as)a
Compiler (standard suffix is ecom)c
Same as cC
Filter tool (standard suffix is c++filt)f
Linker (standard suffix is ld)l
Preprocessor (standard suffix is cpp.ansi).
-tp must be used before any -Wp options can be passed to cpp.ansi. To enable the
external preprocessor, use:
-tp,/opt/langtools/lbin/cpp.ansi.
p
Stand-alone code generator (standard suffix is u2comp)u
All subprocesses
x
Example:
The following example compiles file.C and passes the option -v to the linker.
116 Command-Line Options