02.07.2014 Views

Intel(R) Fortran Compiler for Linux* Systems User's Guide Volume I ...

Intel(R) Fortran Compiler for Linux* Systems User's Guide Volume I ...

Intel(R) Fortran Compiler for Linux* Systems User's Guide Volume I ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Intel</strong>® <strong>Fortran</strong> <strong>Compiler</strong> <strong>for</strong> <strong>Linux*</strong> <strong>Systems</strong> <strong>User's</strong> <strong>Guide</strong>, <strong>Volume</strong> I: Building<br />

Applications<br />

• Add the statement USE IFPORT to your program. This statement includes<br />

the portability library libifport.a.<br />

• Call portability routines using the correct parameters and return value.<br />

libifport.a is passed to the linker by default during linking. To prevent<br />

libifport.a from being passed to the linker, specify the -fpscomp nolibs<br />

option.<br />

Using the libifport.a portability library provides interface blocks and<br />

parameter definitions <strong>for</strong> the routines, as well as compiler verification of calls.<br />

Some routines in this library can be called with different sets of arguments, and<br />

sometimes even as a function instead of a subroutine. In these cases, the<br />

arguments and calling mechanism determine the meaning of the routine. The<br />

libifport.a portability library contains generic interface blocks that give<br />

procedure definitions <strong>for</strong> these routines.<br />

<strong>Fortran</strong> 95/90 contains intrinsic procedures <strong>for</strong> many of the portability functions.<br />

The portability routines are extensions to the <strong>Fortran</strong> 95 standard. When writing<br />

new code, use <strong>Fortran</strong> 95/90 intrinsic procedures whenever possible (<strong>for</strong><br />

portability and per<strong>for</strong>mance reasons).<br />

Portability Routines<br />

This section describes some of the portability routines and how to use them.<br />

For a complete list of the routines, see the table of Portability Routines in the<br />

Overview chapter of the <strong>Intel</strong> <strong>Fortran</strong> Libraries Reference.<br />

In<strong>for</strong>mation Retrieval Routines<br />

In<strong>for</strong>mation retrieval routines return in<strong>for</strong>mation about system commands,<br />

command-line arguments, environment variables, and process or user<br />

in<strong>for</strong>mation.<br />

Group, user, and process ID are INTEGER(4) variables. Login name and host<br />

name are character variables. The functions GETGID and GETUID are provided<br />

<strong>for</strong> portability, but always return 1.<br />

Process Control Routines<br />

229

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!