From: "Alex R. Mosteo" <devnull@mailinator.com>
Subject: Re: Gnat storage size
Date: Mon, 28 Aug 2006 08:26:07 +0200
Date: 2006-08-28T08:26:07+02:00 [thread overview]
Message-ID: <4lfgjkF1jaf4U1@individual.net> (raw)
In-Reply-To: hfKdnT6rZpsdPW3ZnZ2dnUVZ_rSdnZ2d@comcast.com
tmoran@acm.org 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.
next prev parent reply other threads:[~2006-08-28 6:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-26 18:09 Gnat storage size tmoran
2006-08-26 18:46 ` Gautier
2006-08-26 19:26 ` tmoran
2006-08-28 6:26 ` Alex R. Mosteo [this message]
2006-08-30 7:53 ` tmoran
2006-09-01 13:24 ` Alex R. Mosteo
2006-08-31 0:15 ` Kevin K
2006-08-31 1:42 ` tmoran
2006-08-31 23:47 ` Kevin K
2006-08-26 22:42 ` Kevin K
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox