Intel® Fortran Compiler 17.0 Developer Guide and Reference

mstringop-strategy, Qstringop-strategy

Lets you override the internal decision heuristic for the particular algorithm used when implementing buffer manipulation functions such as memcpy and memset.

Syntax

Linux and macOS:

-mstringop-strategy=alg

Windows:

/Qstringop-strategy:alg

Arguments

alg

Specifies the algorithm to use. Possible values are:

const_size_loop

Tells the compiler to expand the string operations into an inline loop when the size is known at compile time. If the size is unknown, the compiler uses its own heuristics to decide how to implement the string operation.

libcall

Tells the compiler to always use a library call when implementing string operations.

rep

Tells the compiler to use its own heuristics to decide what form of rep movs | stos to use when inlining string operations.

Default

varies

If optimization option Os is specified, the default is rep. Otherwise, the default is const_size_loop.

Description

This option lets you override the internal decision heuristic for the particular algorithm used when implementing buffer manipulation functions such as memcpy and memset.

IDE Equivalent

None

Alternate Options

None

See Also