COBOL Manual for TNS and TNS/R Programs
Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
9-63
ENTER
°
Pascal (TNS only)
Each Pascal module uses the same addressing mode for all parameters and
pointers it receives or passes—16-bit addressing and 16-bit pointer allocation
by default, 32-bit addressing and 32-bit pointer allocation if the routine is
compiled with the XMEM directive. (16-bit addressing is called the “small-
memory model” and 32-bit addressing is called the “large-memory model.”) All
Pascal modules bound into one object file must use the same addressing
mode.
°
pTAL
In pTAL modules, each data item declaration (including parameter
declarations) specifies either 1-byte or 2-byte addressing. All declarations use
32-bit addressing.
°
TNS C and C++
Each HP C or HP C++ module uses the same addressing mode for all
parameters and pointers it receives or passes—32-bit addressing and 32-bit
pointer allocation by default, 16-bit addressing and 16-bit pointer allocation if
the module is compiled with the NOXMEM pragma. All modules bound into one
object file must use the same addressing mode. HP recommends using 32-bit
addressing mode for HP C and HP C++ pointers.
°
Native C and C++
In native HP C and HP C++ modules, all data item declarations (including
parameter declarations) use 32-bit addressing.
°
TAL
In TAL programs, each data item declaration (including parameter
declarations) specifies either 16-bit or 32-bit addressing.
•
Restrictions on Calling HP C and HP C++ Functions
An HP COBOL program cannot call an HP C or HP C++ function for which any of
these conditions are true:
°
The function name includes lowercase letters.
°
The function prototype specifies a variable number of parameters.
°
The function returns a structured value.
°
The function specifies a formal parameter whose type has no corresponding
COBOL type (see Appendix B, Data Type Correspondence).