COBOL Manual for TNS and TNS/R Programs
Libraries and Utility Routines
HP COBOL Manual for TNS and TNS/R Programs—522555-006
13-6
Memory Areas
Memory Areas
The memory a COBOL process uses is divided into distinct areas, each holding code
blocks or data blocks for the COBOL run unit or for Guardian environment routines that
serve the run unit.
Table 13-2. Memory Area Characteristics (page 1 of 2)
Memory
Area Purpose Size Comments
User code
space
Holds code blocks
produced by the
compilation
For TNS processes,
up to 16 segments
of up to 128 KB
each with a user
library; up to 32K
segments without a
user library
For native
processes, 32
megabytes
Routines from loadfile
s execute
here.
In the non-CRE environment, run
units that include HP COBOL
routines must have an HP COBOL
main program and can occupy
almost 16 x 128 KB.
For TNS processes, an individual
HP COBOL program (in any
environment) that contains no
nested programs cannot exceed
128 KB. A nest of HP COBOL
programs (the outermost, plus all
programs nested within it) can
exceed 128 KB, but no single
User
library
space
1
Holds additional
user code
(HP COBOL and
non-COBOL
routines called by
the HP COBOL
program)
Up to 16 segments
of up to 128 KB
each
TNS user library routines execute
here.
User data
space
1
Holds data blocks
produced by the
compilation
128 KB Only the lower 64 KB of the 64K
space are available for user data.
The upper 64 KB are reserved for
buffers and run-time data
structures.
1. TNS processes only
2. Native processes only