HP C/aC++ for PA-RISC Software manual Template Options

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

1 230
Download 230 pages 50.97 Kb
Page 91
Image 91

The -Bprotected_defoption is the same as -Bprotectedbut only locally defined (non-tentative) symbols are assigned the protected export class.

-Bsymbolic

-Bsymbolic

The -Bsymbolicoption assigns protected export class to all symbols. This is equivalent to -Bprotectedwith no symbol list.

NOTE: This option is deprecated as of version A.06.05 and if used, it issues a warning that -Bprotected_defis almost always what should be used in its place.

Template Options

By using a template option on the aCC command line, you can:

Close a library or set of link units, to satisfy all unsatisfied instantiations without creating duplicate instantiations.

Specify what templates to instantiate for a given translation unit.

Name and use template files in the same way as for the cfront based HP C++ compiler.

Request verbose information about template processing.

NOTE: All template options on an aCC command line apply to every file on the command line. If you specify more than one incompatible option on a command line, only the last option takes effect.

+[no]dep_name

The +[no]dep_name option enforces strict dependent-name lookup rules in templates. The default is +dep_name.

+inst_compiletime

+inst_compiletime

The +inst_compiletime option causes the compiler to use the compile time (CTTI) instantiation mechanism to instantiate templates. This occurs for every template used or explicitly instantiated in this translation unit and for which a definition exists in the translation unit. This is the default.

NOTE: This option is supported in C++ only and ignored in C-mode.

+inst_directed

+inst_directed

The +inst_directed option indicates to the compiler that no templates are to be instantiated (except explicit instantiations). If you are using only explicit instantiation, specify +inst_directed. The following example compiles file.C with the resulting object file containing no template instantiations, except for any explicit instantiations coded in your source file.

aCC +inst_directed prog.C

See Chapter 5: “Using HP aC++ Templates” (page 132) for more information.

NOTE: This option is supported in C++ only and ignored in C-mode.

+inst_implicit_include

+inst_implicit_include

Template Options 91

Page 91
Image 91
HP C/aC++ for PA-RISC Software manual Template Options