HP C/aC++ for PA-RISC Software manual Wx,args

Models: C/aC++ for PA-RISC Software

1 230
Download 230 pages 50.97 Kb
Page 88
Image 88

aCC -tf,/new/bin/c++filt file.C

Substituting for ecom:

The following example compiles file.C and specifies that /users/proj/ecom should be used instead of the default /opt/aCC/lbin/ecom.

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,argsoption 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 9 Identifiers

x

Description

a

Assembler (standard suffix is as)

c

Compiler (standard suffix is ecom)

C

Same as c

f

Filter tool (standard suffix is c++filt)

l

Linker (standard suffix is ld)

p

Preprocessor (standard suffix is cpp.ansi).

 

-tpmust be used before any -Wpoptions can be passed to cpp.ansi. To enable the external

 

preprocessor, use:

 

-tp,/opt/langtools/lbin/cpp.ansi.

u

Stand-alone code generator (standard suffix is u2comp)

x

All subprocesses

Example:

The following example compiles file.C and passes the option -vto the linker.

aCC -Wl,-v file.C

88 Command-Line Options

Page 88
Image 88
HP C/aC++ for PA-RISC Software manual Wx,args