SQL/MP Programming Manual for COBOL85
Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for COBOL85—429326-004
6-19
Running the NMCOBOL Compiler in the OSS
Environment
srl
is a suffix identifying file.srl as a shared run-time library (SRL) produced
by the nld utility. The nld utility uses the SRL to resolve external references.
You cannot use file.srl with the -WBstatic flag.
-library
is a sequence of characters whose effect depends on the binding mode. If
static binding is selected (-WBstatic flag), the library liblibrary.a is
searched. If dynamic binding is selected (by default or by the -WBdynamic
flag), the library liblibrary.so is searched, and if it is not found, the library
liblibrary.a is searched. You can repeat this operand, specifying several
libraries. They are searched in the order specified.
If you specify a file name that includes one or more directory names, the
compiler searches that file. If you specify a string of characters without
backslashes (\), the compiler uses that to build the name as described
previously.
Table 6-3. OSS nmcobol Utility Flags (page 1 of 4)
-c Directs the nmcobol utility to compile the specified source
files but not to have the nld utility link them, and not to
remove any object files that are created.
For source files of the form file.cbl or file.cob,
create object files of the form file.o in the current
directory.
-g Directs the nmcobol utility to produce information for
symbolic debugging in the object or executable files.
-L directory Directs the nmcobol utility to search directory for the
files named in -l operands before searching for them in
the default places (/lib, /usr/lib, and
/usr/local/lib).
If you repeat this flag, directories are searched in the order
specified.
-O [optlevel] Directs the nmcobol utility to set the optimization level to
optlevel, which must be 0, 1, or 2.
-O 0 is equivalent to the compiler directive OPTIMIZE 0.
-O 1 is equivalent to the compiler directive OPTIMIZE 1.
-O 2 is equivalent to the compiler directive OPTIMIZE 2.
-O is equivalent to -O 2.
Specifying no -O [optlevel] flag is equivalent to
specifying -O 1.
-o outfile Directs the nmcobol utility to use the pathname outfile
instead of the default a.out for the executable file
produced.