C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
13-80
RUNNAMED
RUNNAMED
The RUNNAMED pragma specifies that the object file runs as a named process, even if
you do not specify the NAME option in the RUN command.
The pragma default settings are:
Usage Guidelines
The RUNNAMED pragma can appear only on the compiler RUN command line for
native C and C++. For TNS compilers, the pragma can only be specified with the
-Wrunnamed flag of the c89 utility.
The RUNNAMED attribute is set for native C and C++ programs only if an executable
object file is the output of the compilation. (Process attributes cannot be set for
native relinkable object files.)
For TNS programs, you can set the RUNNAMED object-file attribute either during
compilation using the RUNNAMED pragma or after compilation using the Binder SET
command.
Using the RUNNAMED pragma:
°
Enter the RUNNAMED pragma anywhere in the source text or in the RUN
command that executes the compiler.
°
When you bind several object files together, Binder sets the RUNNAMED
attribute in the target object file if any one of the object files has its
RUNNAMED attribute set.
Using the Binder SET command:
°
Specify the Binder SET RUNNAMED ON command. The default state for the
Binder is RUNNAMED OFF.
°
The Binder SET RUNNAMED ON command takes precedence over any
RUNNAMED pragmas that might or might not have been specified in
individually compiled object files.
RUNNAMED
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler Not set Not set
G-series TNS c89 utility Not set Not set
TNS/R native C and C++ compilers Not set Not set
Native c89 utility Not set Not set
TNS/E native C and C++ compilers Not set Not set