gtpa2m13Application Programming

Dynamic Load Modules

Dynamic load modules (DLMs) are compiled and linked source programs that are ready to be loaded into main storage and run. Although a DLM has a single entry point, it can consist of many parts or subfunctions. The DLM is created by linking together separately compiled object files into a single load module.

A DLM transfers control back to its caller from its entry point function. Control can be given up either explicitly with a return or exit statement or implicitly when the last line of the function runs.

The name of a DLM entry point must match the 4-character DLM name or main. Use prototype statements to define the valid parameters for a DLM.

Note:
If the entry point function is written in C++, it must use extern "C" linkage.