TACL Reference Manual

UTILS:TACL Commands and Functions
HP NonStop TACL Reference Manual429513-018
8-47
CREATESEG Command
°
#SEGMENTCONVERT converts a segment file from a C00 or C10 format to a
format version later than C10 or the reverse.
°
#SEGMENTINFO returns information about a segment in use by your TACL
process.
°
#SEGMENTVERSION returns the format (C00/C10 or later) of a segment file.
You cannot create a segment on a remote system.
TACL allocates virtual memory on a demand basis for its own private segment. It
allocates the first extent of 64 pages (131,072 bytes) at process startup. It then
allocates additional virtual memory as needed, in 64 page increments, to a 4 extent
maximum of 1024 pages (2,097,152 bytes).
TACL allocates additional extents as needed; it never deallocates extents.
You cannot use the segment file until you issue an ATTACHSEG command to gain
access to it.
To display a table of information about all the segment files in use by your TACL
process, use the SEGINFO command.
TACL segment files have file code 440.
Examples
1. This command creates a TACL segment file (file code 440) named MYSEG.
8> CREATESEG myseg
9>
2. These commands create a segment file called MYSEGFIL, attach the segment file
to a directory called :mydir, load a set of routines from a file called
$DATA.TACL.ROUTINES, detach the segment from private use (and complete the
transfer of data to the segment file), and attach the segment for shared use:
8>CREATESEG mysegfil
9>ATTACHSEG PRIVATE mysegfil :mydir
10>HOME :mydir
11>LOAD /KEEP 1/ $DATA.TACL.ROUTINES
12>HOME
13>DETACHSEG :mydir
14>ATTACHSEG SHARED mysegfil :mydir
15>#SET #USELIST [#USELIST] :mydir