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

ID 767251
Date 11/07/2023
Public

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

Document Table of Contents

IFPORT Portability Library

Intel® Fortran includes functions and subroutines that ease porting of code to or from a PC, or allow you to write code on a PC that is compatible with other platforms.

The portability library is called LIBIFPORT.LIB (Windows*) or libifport.a (Linux*). Frequently used functions are included in a portability module called IFPORT.

The portability library also contains IEEE* POSIX library functions. These functions are included in a module called IFPOSIX.

You can use the portability library in one of two ways:

  • Add the statement USE IFPORT to your program. This statement includes the IFPORT module.

  • Call portability routines using the correct parameters and return value.

The portability library is passed to the linker by default during linking. To prevent this behavior, specify the fpscomp compiler option with the nolibs keyword.

Using the IFPORT mod file provides interface blocks and parameter definitions for the routines, as well as compiler verification of calls.

See Also