Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

nmcobol(1) OSS Shell and Utilities Reference Manual
-O [ optlevel ] Species the optimization level to be used for the program le using one of the
following values:
0 Species an OPTIMIZE 0 NMCOBOL compiler directive
1 Species an OPTIMIZE 1 NMCOBOL compiler directive
2 or no optlevel value
Species an OPTIMIZE 2 NMCOBOL compiler directive
If a -O ag is not specied, an OPTIMIZE 1 NMCOBOL compiler directive is
specied.
-o outfile Uses the pathname outle instead of the default pathname a.out for the executable
le produced.
-s Strips symbolic and other information not required for proper execution from
object and executable les. If both the -g and -s ags are used, symbolic informa-
tion is kept in the object les but is stripped from the executable le. Do not
specify the -s and -Wsql ags in the same nmcobol invocation.
-Wansistreams
Generates a program that opens text les as le code 180 les instead of le code
101 (EDIT) les when a program is compiled for the Guardian environment and
includes C or C++ modules compiled with the c89 ag -Wsystype=guardian.
(By default Guardian C or C++ modules open text les as le code 101 les.)
This ag is ignored if -Wsystype=oss is specied. OSS C or C++ modules can
open text les only as le code 180 les.
-WBdllsonly | -WBdynamic | -WBstatic
Species the type of linking to be performed:
-WBdllsonly Species that the ld linker should limit searches to position-
independent code (PIC) les that are dynamic-link libraries
(DLLs) when resolving the le names specied for the -l and -L
ags.
If a le name is qualied, ld searches for a DLL with that name.
If a lename is unqualied, in each search path, ld rst searches
for a DLL with the le name as specied in the -l or -L ag. If ld
cannot nd a DLL, the le name is unqualied, and the search
path is not in the Guardian le system (/G), then ld prexes lib
and sufxes .so to the le name and searches again. If ld still can-
not nd the DLL, it searches the path again with the same prex
but with .srl as the sufx. For more information on search paths,
see the Finding Libraries subsection of the ld(1) reference page
under DESCRIPTION.
When a DLL cannot be found, ld issues an error message unless
its -allow_missing_libs ag is specied.
The -WBdllsonly, -WBdynamic, and -WBstatic ags are search
control toggles. Multiple ags can be specied in a single ld
invocation; the behavior specied remains in effect until another
ag in the set is specied. Thus, you can search for both DLLs
and archive les for some -l and -L ags and search for just
archive les for others. The default library search control is
-WBdynamic.
656 Hewlett-Packard Company 527188-007