A subsystem is a collection of code and optionally data that can be shared across processes and that does not use the VisualAge C++ runtime environment. By default, VisualAge C++ compiler creates a runtime environment for you using C or C++ initializations, exception management, and termination. This environment allows runtime functions to perform input, output and other services. However, many applications require no runtime environment and can be written as subsystems.
You may want to turn off the runtime environment for the following reasons:
A subsystem may have code and data segments that are shared by all processes, or it may have separate segments for each process. Because you do not use the VisualAge C++ runtime environment, you must provide your own initialization functions, multithread support, exception handling, and termination functions. For this purpose, you can use the API provided by your operating systems.
If the subsystem is a DLL, there is also an initialization routine associated with it.
If the subsystem is an executable module, you can pass parameters to it from the command line in the same way you pass parameters to other programs you can run from the command line.
![]()
Static and Dynamic Link Libraries
Run-Time
Library Environments
Signal and
Exception Handlers in DLLs
![]()
Subsystem Library
Functions
The _DLL_InitTerm Function on
OS/2
The _DLL_InitTerm Function on
Windows
