namespace N { struct S {};

void f(S const&, int); // (1)

}

void f(N::S const&, long); // (2)

int main() { N::S x; f(x, 1);

}

Subprocesses of the Compiler

These options allow you to substitute your own processes in place of the default HP aC++ subprocesses, or pass options to HP aC++ subprocesses.

-tx,name

-tx,name

The -tx,nameoption substitutes or inserts subprocess x, using name.

The parameter, x, is one or more identifiers indicating the subprocess or subprocesses. The value of x can one or more of the following:

Table 8 Identifiers

x

Description

 

 

a

Assembler (standard suffix is as)

 

 

c

Compiler (standard suffix is ctcom/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

 

 

The -tx,nameoption works in two modes:

1.If x is a single identifier, name represents the full path name of the new subprocess.

2.If x is a set of identifiers, name represents a prefix to which the standard suffixes are concatenated to construct the full path names of the new subprocesses.

For example, the following command invokes the assembler /users/sjs/myasmb instead of the default assembler /usr/ccs/bin/as to assemble and link file.s.

aCC -ta,/users/sjs/myasmb file.s

More Examples of -t

Following are some examples of -toption:

Substituting for C++ file:

The following example compiles file.C and specifies that /new/bin/c++filt should be used instead of the default /opt/aCC/bin/c++filt.

Subprocesses of the Compiler

87