Guardian Programmer's Guide

Table Of Contents
Creating and Managing Processes
Guardian Programmer’s Guide 421922-014
16 - 6
Process Organization
UL (user library)
SC (system code)
SL (system library)
SCr (system code RISC)
SLr (system library RISC)
For TNS/R native processes the code spaces are:
UCr (user code RISC)
Native UL (user library)
SRL (shared run-time libraries)
SCr (system code RISC)
SLr (system library RISC)
Ordinary DLLs (G06.20 and later RVUs)
For TNS/E native processes the code spaces are:
UC (user code)
UL (DLL user library)
Implicit DLLs (correspond to TNS/R SCr and SLr)
public DLLs (correspond to public SRLs on TNS/R)
ordinary DLLs
Many procedures in the SCr and SLr code spaces are associated with special shell
procedures, known as To-RISC shells, that make it possible to call them from
procedures in the TNS code spaces. Because these native procedures are accessible
by procedures in the TNS code spaces, the environment of a TNS process effectively
includes the SCr and SLr code spaces, in addition to the four TNS code spaces. The
term “system library” can refer collectively to the SC, SL, SCr, and SLr code spaces.
A native procedure (that is, a procedure in a native code space) cannot call a TNS
procedure (that is, a procedure in a TNS code space), so the TNS code spaces are not
part of a native process environment.
A procedure in a particular code space can make direct calls by name to other
procedures in the same code space. It can also make calls to procedures in other
code spaces as illustrated in Figure 16-1. Procedures in the user library or SRL
spaces cannot ordinarily call procedures in user code. Procedures in the system code
or system library spaces cannot ordinarily call procedures in the user library, SRL, or
user code spaces.
A procedure that might not have direct access to a procedure in another code space
can often call the other procedure indirectly by using a procedure pointer rather than a