COBOL Manual for TNS and TNS/R Programs
Program Compilation
HP COBOL Manual for TNS and TNS/R Programs—522555-006
11-50
Categories of Compiler Directives
OPTIMIZE
2
Specifies the level of object code
optimization the compiler must
provide
PORT and NOPORT
NOPORT Causes
BINARY/COMPUTATIONAL
items to be byte-aligned and
allows the CALL statement to
behave as it does in X/Open and
XPG4
RUNNABLE
Causes the NMCOBOL compiler
to produce a loadfile
SAVEABEND and
NOSAVEABEND
NOSAVEABEND Specifies that if the program
terminates abnormally, its state is
saved for future examination with
the selected debugger
SHARED
NON-SHARED Generates shared code (PIC) for
a DLL (see also CALL-SHARED)
SYMBOLS and NOSYMBOLS
NOSYMBOLS Controls whether a symbol table
is included in the target file
SYNTAX
COMPILE Suppresses generation of object
code
TRAP2 and NOTRAP2
1
TRAP2 Suppresses all arithmetic
overflow trapping
TRAP2-74 and NOTRAP2-74
1
TRAP2-74 Suppresses arithmetic overflow
trapping in called COBOL 74
programs only
UL
3
Specifies that the resulting object
code will be in a user library
Table 11-15. Code-Generation Control Directives (page 2 of 2)
Directive(s) Default Action
1. The NMCOBOL compiler ignores and issues warnings for these directives.
2. The COBOL85 and NMCOBOL compilers handle these directives differently.
3. The COBOL85 compiler reports an error for this directive.