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

When you specify the RUNNABLE pragma, the native C and C++ compilers does:
Invoke the appropriate linker for conventional or PIC (Position-Independent Code)
Specify the $SYSTEM.SYSTEM.LIBCOBEY command file to a TNS/R linker
The LIBCOBEY file directs the linker to link to a set of standard shared run-time libraries
(SRLs). For most C and C++ TNS/R programs, this set of libraries is sufficient to
create an executable program.
If your program requires libraries not specified in LIBCOBEY (such as the Tools.h++
library) you can direct the linker to search additional libraries using the LINKFILE
pragma. For more details, see LINKFILE (page 213).
For information on linking TNS/R C and C++ programs, see Linking a TNS/R Module
(page 294).
For information on linking TNS/E C and C++ programs, see Linking a TNS/E Module
(page 307).
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.
RUNNAMED
The pragma default settings are:
SYSTYPE OSSSYSTYPE GUARDIAN
Not setNot setTNS C compiler
Not setNot setG-series TNS c89 utility
Not setNot setTNS/R native C and C++ compilers
Not setNot setNative c89 and c99 utilities
Not setNot setTNS/E native C and C++ compilers
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 or the c99 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.
RUNNAMED 233