| www.delorie.com/gnu/docs/gcc/gnat_ug_76.html | search |
![]() Buy the book! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
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.
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |