Storing Routines in Dynamic-Link Libraries

Another method of organizing the code in your application involves storing the executable code for certain routines in a separate file called a Dynamic-Link Library (DLL) and building your applications so that they call these routines from the DLL.

When routines in a DLL are called, the routines are loaded into memory at run-time as they are needed. This is most useful when several applications use a common group of routines. By storing these common routines in a DLL, you reduce the size of each application that calls the DLL. In addition, you can update the routines in the DLL without having to rebuild any of the applications that call the DLL.

For more information on compiler and linker options and how to build a project, see Fortran Dynamic-Link Library Projects.