Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Fortran Module Naming Conventions

Fortran module entities (data and procedures) have external names that differ from other external entities. Module names use the convention:

Linux

modulename_mp_entity_

Windows

_MODULENAME_mp_ENTITY

modulename is the name of the module. For Windows operating systems, the name is uppercase by default.

entity is the name of the module procedure or module data contained within MODULENAME. For Windows operating systems, ENTITY is uppercase by default.

_mp_ is the separator between the module and entity names and is always lowercase (except when the assume std_mod_proc_name compiler option or standard-semantics compiler option is used).

For example:

    MODULE mymod
      INTEGER a
   CONTAINS
      SUBROUTINE b (j)
         INTEGER j
      END SUBROUTINE
   END MODULE

This results in the following symbols being defined in the compiled object file on Linux operating systems.

mymod_mp_a_
mymod_mp_b_

The following symbols are defined in the compiled object file on Windows operating systems based on IA-32 architecture:

_MYMOD_mp_A
_MYMOD_mp_B

On Windows operating systems based on Intel® 64 architecture, there is no beginning underscore.