Intel® Fortran Compiler 16.0 User and Reference Guide
The ATTRIBUTES directive option ALIAS specifies an alternate external name to be used when referring to external subprograms.
!DIR$ ATTRIBUTES ALIAS: external-name:: subprogram
external-name |
Is a character constant delimited by apostrophes or quotation marks. The character constant is used as is; the string is not changed to uppercase, nor are blanks removed. |
subprogram |
Is an external subprogram. |
The ALIAS option overrides the C (and STDCALL) option. If both C and ALIAS are specified for a subprogram, the subprogram is given the C calling convention, but not the C naming convention. It instead receives the name given for ALIAS, with no modifications.
ALIAS cannot be used with internal procedures, and it cannot be applied to dummy arguments.
The following example gives the subroutine happy the name "_OtherName@4" outside this scoping unit:
INTERFACE SUBROUTINE happy(i) !DIR$ ATTRIBUTES STDCALL, DECORATE, ALIAS:'OtherName' :: happy INTEGER i END SUBROUTINE END INTERFACE
!DIR$ ATTRIBUTES ALIAS has the same effect as the !DIR$ ALIAS directive.