Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
c89(1) OSS Shell and Utilities Reference Manual
-Woptfile="filename"
Specifies an optimizer file, which contains a list of functions that are to be optimized at
the level specified in the file. The optimizer file can raise or lower the optimize level
for the given functions.
Functions in the module that are not listed in the optimizer file are compiled at the level
given in the -Woptimize flag, or, if no -Woptimize flag is specified, at the default
optimize level.
Each line of the optimizer file can contain only one function name and the optimize
level (0, 1, or 2) that you want for that function. The function name must be the inter-
nal name used for linking; for C++ programs, the mangled name must be used.
-Woptimize=opt
Specifies the optimization level. opt must be 0, 1,or2. The default value is 1. -O is
equivalent to -Woptimize=2.
-W[no]optional_lib
Indicates whether a library specified in the command stream should be considered |
optional when the ld or eld linker creates a loadfile. |
When -Wnooptional_lib behavior is in effect, any library specified in a -l or -lib flag is |
included in the .liblist section of the loadfile being created. When -Woptional_lib |
behavior is in effect, a specified library can be omitted from the .liblist section of the |
loadfile being created if omitting it would not affect how symbolic references are |
resolved.
These flags can be specified as many times as needed in the command stream. Provid-
ing either flag overrides the current setting, so that the linker actions can be controlled
on a library-by-library basis.
If a library is specified more than once, and at least one specification occurs when
-Wnooptional_lib is in effect, the library is included in the .liblist section of the
loadfile being created.
The default behavior is -Wnooptional_lib.
-W[no]overflow_traps
Enables [disables] overflow traps. The default setting is -Wnooverflow_traps.
-WP Preprocesses the specified source files. No compilation or linking is performed. Out-
put is placed in corresponding files with .i (for C) or .ii (for C++) suffixes in the current
working directory.
If the -Wsql flag is specified, embedded NonStop SQL/MP statements are processed.
If the -Wsqlmx flag is specified, embedded NonStop SQL/MX statements are pro-
cessed.
The -E, -WH, and -WM flags override the -WP flag.
-Wpool_string_literals
Specifies that, within a compilation unit, multiple occurences of the same string literal
should occupy the same storage space. This flag applies to C++ compilations only; it
is ignored when C++ is not used.
The default assignment for multiple occurrences of a string literal gives them separate
storage space.
2−14 Hewlett-Packard Company 527188-003