This gives some important information on stack settings under the different operating systems. It might be important when porting applications to other operating systems.
Under the DOS targets, the default stack is set to 256 kB. This can be modified with the GO32V2 target using a special DJGPP utility stubedit. It is to note that the stack size may be changed with some compiler switches, this stack size, if greater then the default stack size will be used instead, otherwise the default stack size is used.
Under LINUX, stack size is only limited by the available memory of the system.
Under , stack size is only limited by the available memory of the system.
Under FREEBSD, stack size is only limited by the available memory of the system.
Under , stack size is fixed at 256Kb. It currently cannot be changed, it is recommended to turn on stack checking when compiling for this target platform.
Under WINDOWS, stack size is only limited by the available memory of the system.
Under OS/2, stack size is specified at a default value of 8 Mbytes. This currently cannot be changed directly.
Under AmigaOS, stack size is determined by the user, which sets this value using the stack program. Typical sizes range from 4 kB to 40 kB. The stack size currently cannot be changed, it is recommended to turn on stack checking when compiling for this target platform.
Under Atari TOS, stack size is currently limited to 8 kB. The stack size currently cannot be changed, it is recommended to turn on stack checking when compiling for this target platform.