COBOL Manual for TNS and TNS/R Programs
HP COBOL Limits
HP COBOL Manual for TNS and TNS/R Programs—522555-006
20-2
Size
°
TNS COBOL run unit
A COBOL run unit can have up to 32 segments of code, each segment
including up to 128 KB.
If the program calls any code in user library space, the user code space can
contain a maximum of 16 segments of COBOL, FORTRAN, TAL, C, and
Pascal code, and the user library space can contain an additional 16 segments
of COBOL, FORTRAN and TAL code.
If the program does not call any routines in user library space, the user code
space can contain up to 32 segments of COBOL, FORTRAN, TAL, C, and
Pascal code.
The procedure entry-point (PEP) table, up to 1024 bytes, is part of each code
segment. If any program unit exceeds 64 KB, the PEP table for its segment is
exactly 1024 bytes.
If any program in a segment calls an external routine (a routine in another code
segment), an external entry-point (XEP) table is also part of the segment. The
size of the XEP table depends upon the number of external routines called.
The Binder object-file builder reserves space for one XEP table entry for each
unresolved external reference.
°
TNS/R COBOL run unit
On a D-series or pre-G05 system, individual segments are limited to 128 KB.
On a G05 or later system, a native run unit has an overall address space of
just under 1.1 GB.
°
Contained program
The object code generated for a contained program cannot exceed 65,536
bytes.
°
Separately compiled program
The object code generated for a separately compiled program cannot exceed
131 KB.
•
Composite of Operands
The composite of operands for an arithmetic statement other than COMPUTE must
not exceed a size of 18 decimal digits. For arithmetic expressions or COMPUTE
statements, the composite of operands does not apply.