Developer Guide and Reference

  • 2021.2
  • 04/07/2021
  • Public Content
  • Download as PDF
Contents

fpic

Determines whether the compiler generates position-independent code.

Syntax

Linux:
-fpic
-fno-pic
Windows:
None
Arguments
None
Default
-fno-pic
The compiler does not generate position-independent code.
Description
This option determines whether the compiler generates position-independent code.
Option
-fpic
specifies full symbol preemption. Global symbol definitions as well as global symbol references get default (that is, preemptable) visibility unless explicitly specified otherwise.
Option
-fpic
must be used when building shared objects.
This option can also be specified as
-fPIC
.
IDE Equivalent
Visual Studio:
None
Eclipse:
Code Generation > Generate Position Independent Code
Alternate Options
None

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.