SQL/MP Programming Manual for COBOL85
Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for COBOL85—429326-004
6-22
Binding and Linking
Successful compilation always creates object files. If the -c option is specified, the
object files created for source files of the form file.cbl or file.cob have the form
file.o. For example, for a source file named main.cbl, successful compilation
creates an object file named main.o in the current directory.
To terminate a compilation in the OSS environment, press the Control and c keys
(Ctrl-c) simultaneously.
Binding and Linking
The Binder Program
This subsection applies only to object files created with the COBOL85 compiler. The
NMCOBOL compiler does not use Binder, it uses the nld utility. See The nld Utility
on
page 6-23.
The Binder program is a tool you can use to read, link, modify, and build executable
object files. You can bind C, TAL, COBOL, and Pascal object files, including SQL
program files. Follow these guidelines when you bind SQL program files:
•
Handle SQL program files like other object files.
•
Bind object files after they are compiled by the compiler. (You can bind object files
after running the SQL compiler; however, the binding operation invalidates the
resulting target file, and you must then explicitly recompile the program file to
validate it.)
-Wsyntax Directs the nmcobol utility to check the syntax of the
source program, but not generate any code.
-Wusage Directs the nmcobol utility to display information on how to
run the cobol utility. No compilation system components
are run.
-Wv Directs the nmcobol utility to echo to the standard error
file the command line as each component of the
compilation system is run.
-Wverbose Directs the nmcobol utility to display detailed information
from the compiler and nld utility.
-Ww Directs the nmcobol utility to suppress the printing of
compiler warning messages.
-Wx Directs the nmcobol utility to strip part of the symbol table
from the output object file, but keep information necessary
for the object file to be used as input to the nld utility. This
flag is typically used with the -Wr flag.
Table 6-3. OSS nmcobol Utility Flags (page 4 of 4)