Next: , Previous: Debugging a DLL, Up: Microsoft Windows Topics

F.14 Setting Stack Size from gnatlink

It is possible to specify the program stack size at link time. On modern versions of Windows, starting with XP, this is mostly useful to set the size of the main stack (environment task). The other task stacks are set with pragma Linker_Options or with gnatbind -d. On older versions of Windows (2000, NT4, etc.), it is not possible to set the reserve size of individual tasks and thus the link-time stack size applies to all tasks.

This setting can be done with gnatlink using either: