Home Page The Club Computers News Links Glossary EYAWTK
Before Amiga Background ICS OCS ECS AGA ??? AmigaOne
U-Boot SLB Linux Amiga OS Dual Boot Motherboards Peripherals Other
Initialisation Installation OS4 Updates About OS4 File Systems Networking Printing Other
Introduction File System Workbench Preferences Commands Error Msgs Miscellaneous

AmigaOS 4.0 - About OS4 - Commands

STACK Internal
Purpose: To display or set the stack size within the current Shell.
Format: STACK [<stack size>]
Template: SIZE/N
Path: Internal
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 4096 bytes (4K) to 1,048,576 bytes (1Mb) or more depending on the program. If the stack is too small, a system failure may occur. If the stack is too large, it may waste memory unecessarily and take too much memory away from other system functions.

Caution : If 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.

Example 1:

3.OS4:> STACK
Current stack size is 48,896 bytes

Example 2:

3.OS4:> STACK 64000
3.OS4:> STACK
Current stack size is 64,000 bytes


Return to Commands Selection

Disclaimer: Amiga Auckland have prepared the above information for the use of its members based on our experiences and as such is subject to revision at any time. Amiga Auckland cannot guarantee any of the information and cannot be held accountable for any issues that may result from using it.


Copyright 2006 Amiga Auckland Inc. All rights reserved.
Revised: February 9, 2006.