save, Qsave

Causes variables to be placed in static memory.

IDE Equivalent

Windows: Data > Local Variable Storage

Linux: None

Mac OS X: Data > Local Variable Storage

Architectures

IA-32, Intel® 64, IA-64 architectures

Syntax

Linux and Mac OS X:

-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 run-time stack. Note that if option recursive, -openmp (Linux and Mac OS X), or /Qopenmp (Windows) is specified, the default is -automatic (Linux) or /Qauto (Windows).

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 run-time stack, specify option automatic.

Alternate Options

Linux and Mac OS X: -noautomatic, -noauto

Windows: /noautomatic, /noauto, /4Na

See Also