STACK monitor command STACK monitor command Syntax STACK task = size Function Specify the amount of system memory reserved for a program task to use for subroutine calls and automatic variables. Usage Considerations This command cannot be executed if any program task is active. The RETRY command can be used to continue task execution after issuing the STACK command. If an attempt is made to set the stack size smaller than the amount of stack memory currently in use by the task, the stack size will be set to the size currently in use. If you do not want to use the default stack size (128 kB), it must be set every time the eV+ system is booted from disk.
(For example, an initialization command program can be used to set the stack sizes and perform other setup steps.) Parameters task Real-valued constant, variable, or expression interpreted as an integer that specifies the program task whose stack size is to be changed. (See the eV+ Language User's Guide for information on tasks.) size Real-valued constant, variable, or expression that specifies the amount of stack space to be reserved, in kilobytes. The number of bytes to be reserved is computed by multiplying the "size" parameter value by 1024.
Details When subroutine calls are made, eV+ uses an internal storage area called a "stack" to save information required by the subroutine that begins executing. This information includes: 1. The name and step number of the calling program. 2. Data necessary to access subroutine arguments. 3. The values of any AUTOmatic variables specified in the called program. eV+Operating System Reference Guide, 2.x,18321-000 Rev A Page 161