CRE Programmer's Guide
CRE Services
Common Run-Time Environment (CRE) Programmer’s Guide—528146-004
2-13
Native CRE Initialization
•
Opens certain shared standard files (standard input, standard output, standard 
log), depending on the language of your main routine:
°
If your main routine is written in C, the CRE calls a C run-time library function 
to open all three standard files unless you have specified the nostdfiles 
pragma.
°
If your program is written in COBOL, FORTRAN, or TAL, the TNS CRE opens 
each standard file only when it receives an open request from your program.
Native CRE Initialization
During program initialization in the Guardian environment, the native CRE performs the 
following:
•
Processes the startup message, ASSIGN messages, and the PARAM message
•
Saves the names and values of all PARAMs and ASSIGNs and returns them to 
your program automatically
The TACL Reference Manual describes how you specify ASSIGNs and PARAMs in 
TACL. The Guardian Programmer’s Guide describes how you process startup 
messages, ASSIGNs, and PARAMs.
The CRE processes ASSIGN messages following the same rules as the 
INITIALIZER system procedure. See the Guardian Procedure Calls Reference 
Manual for details.
Table 2-3 on page 2-11 shows the PARAMs that the CRE explicitly processes 
during initialization. The PARAM Values column of the table shows the values that 
the CRE accepts for each PARAM. The CRE terminates your program if the value 
associated with any PARAM symbolic name is not valid.
•
Determines the name of your program’s standard log. (Standard log is another 
name for what some languages call STDERR. Messages written to STDERR 
appear in standard log. Messages in standard log might be errors, warnings, or 
informational.) If the CRE cannot determine the name, it terminates your program. 
Standard Files on page 2-2 describes how the CRE determines the name of the file 
to open for standard log.
•
Establishes a signal handler.
•
Invokes an HP NonStop operating system initialization function.
•
Opens certain shared standard files (standard input, standard output, standard 
log), depending on the language of your main routine:
°
If your main routine is written in C, the CRE calls a C run-time library function 
to open all three standard files unless you have specified the nostdfiles 
pragma.










