Subsections


H. Stack configuration

This gives some important information on stack settings under the different operating systems. It might be important when porting applications to other operating systems.

1 DOS

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.

2 Linux

Under LINUX, stack size is only limited by the available memory of the system.

3 netbsd

Under , stack size is only limited by the available memory of the system.

4 freebsd

Under FREEBSD, stack size is only limited by the available memory of the system.

5 BeOS

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.

6 Windows

Under WINDOWS, stack size is only limited by the available memory of the system.

7 OS/2

Under OS/2, stack size is specified at a default value of 8 Mbytes. This currently cannot be changed directly.

8 Amiga

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.

9 Atari

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.



Free Pascal Compiler
2001-09-22