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!news2.google.com!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: Fri, 01 Sep 2006 15:24:30 +0200 Message-ID: <4lqqjqF2nq7cU1@individual.net> References: <4lfgjkF1jaf4U1@individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: individual.net hepV7mJMiMVfYF9fDILvPwR3sGMiq6TjR9KaGWQmqoAAbvKSc= User-Agent: KNode/0.10.4 Xref: g2news2.google.com comp.lang.ada:6439 Date: 2006-09-01T15:24:30+02:00 List-Id: tmoran@acm.org wrote: > So it appears that a simple program that does not use tasks or access > types is limited to under 4 megabytes of data with Gnat 3.15p on Windows? This paragraph from the user's guide (2006 GPL edition) applies here. Check the corresponding one of 3.15p. "For declared tasks, the stack size is controlled by the size given in an applicable Storage_Size pragma or by the value specified at bind time with `-d' (see section 4.2 Switches for gnatbind) or is set to the default size as defined in the GNAT runtime otherwise. For the environment task, the stack size depends on system defaults and is unknown to the compiler. Stack checking may still work correctly if a fixed size stack is allocated, but this cannot be guaranteed. To ensure that a clean exception is signalled for stack overflow, set the environment variable GNAT_STACK_LIMIT to indicate the maximum stack area that can be used, as in:"