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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,bf2571446148ae30 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.204.152.89 with SMTP id f25mr15122bkw.0.1325732660610; Wed, 04 Jan 2012 19:04:20 -0800 (PST) Path: cj8ni47105bkb.0!nntp.google.com!news2.google.com!postnews.google.com!q8g2000yqa.googlegroups.com!not-for-mail From: Jerry Newsgroups: comp.lang.ada Subject: Re: Can't set executable stack size during compilation Date: Wed, 4 Jan 2012 19:03:28 -0800 (PST) Organization: http://groups.google.com Message-ID: <756a0ca8-5045-4822-83af-eed794d073ff@q8g2000yqa.googlegroups.com> References: <4f047e0f$0$6582$9b4e6d93@newsspool3.arcor-online.net> NNTP-Posting-Host: 97.117.185.89 Mime-Version: 1.0 X-Trace: posting.google.com 1325732654 23451 127.0.0.1 (5 Jan 2012 03:04:14 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 5 Jan 2012 03:04:14 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q8g2000yqa.googlegroups.com; posting-host=97.117.185.89; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HLUARECNK X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-01-04T19:03:28-08:00 List-Id: On Jan 4, 9:27=A0am, Georg Bauhaus wrote: > On 04.01.12 16:49, Erich wrote: > > > I have a problem setting the stack size of a GNAT made program during > > compilation. It is a bit memory extensive and sometimes yields a > > storage error with the standard stack size (I'd prefer to avoid the > > heap for the time being). > > > None of the methods described here: > > >http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Setting-Stack-Size-from-gn... > > > so far had any effect on the executable. (The -Xlinker version yields > > a linker error when set as link option in GNAT-GPS.) Using ulimit -s > > 32768 manually in the shell solves the problem, but this is not a good > > option for final deployment. > > This looked like having relevant information. The last paragraph > hints at setrlimit(2). > setrlimit is discussed here: http://groups.google.com/group/comp.lang.ada/browse_thread/thread/ae395e5c1= 1de7bc9/bda8d61bd3a66ee9?hl=3Den&q=3DJerry+stack&lnk=3Dnl& Jerry