[AmigaOS / ApolloOS Command Reference\Stack] 
 

STACK

Format: STACK [<stack size>] Template: SIZE/N Purpose: To display or set the stack size within the current Shell. Path: Internal Specification: When you run a program, it uses a certain amount of stack, a special area in memory allocated for the program. The stack required for a program should be given in the program's documentation. However, if a program causes a system failure, you may wish to experiment with various stack sizes. Commands that perform operations that consist of multiple levels may require additional stack space. Stack sizes generally range from 4000 to 25,000 bytes. If the stack size is too small, a system failure may occur. Too large of a stack size may take too much memory away from other system functions. CautionIf you run out of stack space, you may receive a Software Failure message. If you have altered the stack for the program that caused the Software Failure message, try increasing the stack size.