Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 3/31/2023
Public

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

Document Table of Contents

mdynamic-no-pic

Generates code that is not position-independent but has position-independent external references.

Syntax

Linux:

None

macOS:

-mdynamic-no-pic

Windows:

None

Arguments

None

Default

OFF

All references are generated as position independent.

Description

This option generates code that is not position-independent but has position-independent external references.

The generated code is suitable for building executables, but it is not suitable for building shared libraries.

This option may reduce code size and produce more efficient code. It overrides the -fpic compiler option.

IDE Equivalent

None

Alternate Options

None

See Also