Determines where to allocate certain XL Fortran compiler temporaries at run time.
Applicable compiler temporaries are the set of temporary variables created by the compiler for its own use when it determines it can safely apply these. Most typically, the compiler creates these kinds of temporaries to hold copies of XL Fortran arrays for array language semantics, especially in conjunction with calls to intrinsic functions or user subprograms.
.-0-----. >>- -q--stacktemp--=--+- -1---+-------------------------------->< '-value-'
@PROCESS:
@PROCESS STACKTEMP={0 | -1 | value}
-qstacktemp=0
The possible suboptions are:
If you have programs that make use of large arrays, you may need to use this option to help prevent stack space overflow when running them. For example, for SMP or OpenMP applications that are constrained by stack space, you can use this option to move some compiler temporaries onto the heap from the stack.
The compiler cannot detect whether or not the stack limits will be exceeded when an application runs. You will need to experiment with several settings before finding the one that works for your application. To override an existing setting, you must specify a new setting.
The -qstacktemp option can take precedence over the -qsmallstack option for certain compiler-generated temporaries.