LF Fortran 95


Include Variables Initialized to Zero

Compile only. Default: -zero

Specifying -zero will cause all variables which have been explicitly initialized to zero to be given initialization values in the object file. Specifying -nzero will cause explicit initializations to zero to not be given initialization values in the object file, but to be initialized at load time. This will cause object files created with -nzero to potentially be much smaller.

Note that specifying the -CHK (u) option will diagnose undefined variables that are not explicitly initialized or assigned by your Fortran code, even when -zero is specified.

Visual Studio Property

The -zero option can be set using the Fortran|General|Additional Compiler Options property. This property can be set on the property page for the project or source file.

See Also

Setting Build Options