From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,73c865853bdc4937 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Gnat storage size Date: Mon, 28 Aug 2006 08:26:07 +0200 Message-ID: <4lfgjkF1jaf4U1@individual.net> References: <44f096f8$1_3@news.bluewin.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: individual.net 9VjW5WQ84dtRv9snsshrzAKMa+6SlMj1D9Cs3oyzrMmM1Yzoc= User-Agent: KNode/0.10.4 Xref: g2news2.google.com comp.lang.ada:6416 Date: 2006-08-28T08:26:07+02:00 List-Id: 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.