[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]


D.1.4.7 Stack Command

The stack command displays information on DECthreads stacks. It displays the start and end address of each stack area. When running in metered mode, it also displays an estimate of the number of bytes used on each thread's stack (except for the default stack).

Format:

stack [stack-number] [qualifier]

stack-number

Each argument that does not begin with "-" is interpreted as an address within some thread's stack. This will cause the command to give information only on the stacks containing the specified addresses. An address is specified in C language syntax as follows: <NUMBER> for decimal, 0<NUMBER> for octal, or 0x<NUMBER> for hexadecimal.)


Qualifier          Description

-f          List the start and end address of the stack guard pages for
            each allocated stack.

-s          Include statistics for each stack. Currently, the only
            statistic reported is the maximum number of bytes written
            by the thread. This information can only be calculated for
            stacks other than the default process stack. This information
            is available when DECthreads is run with metering enabled.