Re: Gnat storage size
- From: "Alex R. Mosteo" <devnull@xxxxxxxxxxxxxx>
- Date: Mon, 28 Aug 2006 08:26:07 +0200
tmoran@xxxxxxx wrote:
What command line parameter do I need with Gnat 3.15p to increase the
main program's stack size?
-largs -Wl,--stack=0x1000000
see the GNAT User's Guide: 5.3 Setting Stack Size from gnatlink
gnatmake big -largs -Wl,--stack=0x1000000
works for a parameter of 4022 but gives:
raised STORAGE ERROR : EXCEPTION_STACK_OVERFLOW
with a parameter >= 4023, while either of
gnatmake big -largs -Wl,--stack=0x2000000
gnatmake big -largs -Wl,--stack=0x8000000
work for 4023 .. 4025 but 4026 again gives:
raised STORAGE_ERROR : big.adb:4 object too large
Try moving your code out of the main task and giving a pragma Storage_Size
for the new task.
You still need the linker commands, however.
.
- Follow-Ups:
- Re: Gnat storage size
- From: tmoran
- Re: Gnat storage size
- References:
- Re: Gnat storage size
- From: Gautier
- Re: Gnat storage size
- From: tmoran
- Re: Gnat storage size
- Prev by Date: Re: gnat for MacOS Tiger?
- Next by Date: Re: What does -gnato do?
- Previous by thread: Re: Gnat storage size
- Next by thread: Re: Gnat storage size
- Index(es):
Relevant Pages
|