Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
nmcobol(1) OSS Shell and Utilities Reference Manual
-O [ optlevel ] Specifies the optimization level to be used for the program file using one of the
following values:
0 Specifies an OPTIMIZE 0 NMCOBOL compiler directive
1 Specifies an OPTIMIZE 1 NMCOBOL compiler directive
2 or no optlevel value
Specifies an OPTIMIZE 2 NMCOBOL compiler directive
If a -O flag is not specified, an OPTIMIZE 1 NMCOBOL compiler directive is
specified.
-o outfile Uses the pathname outfile instead of the default pathname a.out for the executable
file produced.
-s Strips symbolic and other information not required for proper execution from
object and executable files. If both the -g and -s flags are used, symbolic informa-
tion is kept in the object files but is stripped from the executable file. Do not
specify the -s and -Wsql flags in the same nmcobol invocation.
-Wansistreams
Generates a program that opens text files as file code 180 files instead of file code
101 (EDIT) files when a program is compiled for the Guardian environment and
includes C or C++ modules compiled with the c89 flag -Wsystype=guardian.
(By default Guardian C or C++ modules open text files as file code 101 files.)
This flag is ignored if -Wsystype=oss is specified. OSS C or C++ modules can
open text files only as file code 180 files.
-WBdllsonly | -WBdynamic | -WBstatic
Specifies the type of linking to be performed:
-WBdllsonly Specifies that the ld linker should limit searches to position-
independent code (PIC) files that are dynamic-link libraries
(DLLs) when resolving the file names specified for the -l and -L
flags.
If a file name is qualified, ld searches for a DLL with that name.
If a filename is unqualified, in each search path, ld first searches
for a DLL with the file name as specified in the -l or -L flag. If ld
cannot find a DLL, the file name is unqualified, and the search
path is not in the Guardian file system (/G), then ld prefixes lib
and suffixes .so to the file name and searches again. If ld still can-
not find the DLL, it searches the path again with the same prefix
but with .srl as the suffix. 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 flag is specified.
The -WBdllsonly, -WBdynamic, and -WBstatic flags are search
control toggles. Multiple flags can be specified in a single ld
invocation; the behavior specified remains in effect until another
flag in the set is specified. Thus, you can search for both DLLs
and archive files for some -l and -L flags and search for just
archive files for others. The default library search control is
-WBdynamic.
6−56 Hewlett-Packard Company 527188-007