Next: Setting Heap Size from gnatlink, Previous: Switches for gnatlink, Up: Linking Using gnatlink
gnatlink
It is possible to specify the program stack size from gnatlink
.
Assuming that the underlying linker is GNU ld there is two ways to do so:
-Xlinker
linker option
$ gnatlink hello -Xlinker --stack=0x10000,0x1000
This set the stack reserve size to 0x10000 bytes and the stack commit size to 0x1000 bytes.
-Wl
linker option
$ gnatlink hello -Wl,--stack=0x1000000
This set the stack reserve size to 0x1000000 bytes. Note that with
-Wl
option it is not possible to set the stack commit size
because the coma is a separator for this option.