Re: Gnat storage size
- From: "Kevin K" <kevink4@xxxxxxxxx>
- Date: Thu, 31 Aug 2006 00:15:01 GMT
On Sat, 26 Aug 2006 19:26:56 UTC, 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
For what's it worth, I just installed Gnat 2006 for Windows, and
converted your test procedure. By using the -Xlinker
--stack=0x10000000 on it, I was able to successfully run big 64000 on
XP (technically, Tablet PC).
So either you need to use the -Xlinker variant, or there is a
limitation in the 3.15 version of the compiler. Or you are using an
older version of Windows that doesn't support this.
--
.
- 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: Zerofault
- Next by Date: Re: Gnat storage size
- Previous by thread: Re: Gnat storage size
- Next by thread: Re: Gnat storage size
- Index(es):
Relevant Pages
|