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

ID 767251
Date 3/22/2024
Public
Document Table of Contents

save, Qsave

Causes variables to be placed in static memory.

Syntax

Linux:

-save

Windows:

/Qsave

Arguments

None

Default

-auto-scalar
or /Qauto-scalar

Scalar variables of intrinsic types INTEGER, REAL, COMPLEX, and LOGICAL are allocated to the runtime stack. Note that the default changes to option auto if one of the following options are specified:

  • recursive

  • [q or Q]openmp

Description

This option saves all variables in static allocation except local variables within a recursive routine and variables declared as AUTOMATIC.

If you want all local, non-SAVEd variables to be allocated to the runtime stack, specify option auto.

IDE Equivalent

Visual Studio: Data > Local Variable Storage

Alternate Options

Linux: -noauto

Windows: /noauto, /4Na

See Also