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

ID 767251
Date 7/13/2023
Public

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

Document Table of Contents

fpie

Tells the compiler to generate position-independent code. The generated code can only be linked into executables.

Syntax

Linux:

-fpie

macOS:

None

Windows:

None

Arguments

None

Default

OFF

The compiler does not generate position-independent code for an executable-only object.

Description

This option tells the compiler to generate position-independent code. It is similar to -fpic, but code generated by -fpie can only be linked into an executable.

Because the object is linked into an executable, this option causes better optimization of some symbol references.

To ensure that runtime libraries are set up properly for the executable, you should also specify option -pie to the compiler driver on the link command line.

Option -fpie can also be specified as -fPIE.

IDE Equivalent

None

Alternate Options

None

See Also