# save, Qsave

Causes variables to be placed in static memory.

## Syntax

Linux: | -save

macOS: | -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 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 run-time stack, specify option auto.

## IDE Equivalent

Visual Studio: Data > Local Variable Storage

## Alternate Options

Linux and macOS: -noauto

Windows: /noauto, /4Na

Parent topic: Data Options

## See Also

auto compiler option
auto_scalar compiler option