Intel® Fortran Compiler 17.0 Developer Guide and Reference
Tells the compiler to preserve allocation of variables that are not referenced in the source.
Linux and macOS: | -fkeep-static-consts -fno-keep-static-consts |
Windows: | /Qkeep-static-consts /Qkeep-static-consts- |
None
-fno-keep-static-consts or /Qkeep-static-consts- |
If a variable is never referenced in a routine, the variable is discarded unless optimizations are disabled by option -O0 (Linux* and OS X*) or /Od (Windows*). |
This option tells the compiler to preserve allocation of variables that are not referenced in the source.
The negated form can be useful when optimizations are enabled to reduce the memory usage of static data.
None