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,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.204.156.205 with SMTP id y13mr2158168bkw.3.1325692194265; Wed, 04 Jan 2012 07:49:54 -0800 (PST) Path: cj8ni43539bkb.0!nntp.google.com!news2.google.com!postnews.google.com!n6g2000vbg.googlegroups.com!not-for-mail From: Erich Newsgroups: comp.lang.ada Subject: Can't set executable stack size during compilation Date: Wed, 4 Jan 2012 07:49:53 -0800 (PST) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 85.242.65.223 Mime-Version: 1.0 X-Trace: posting.google.com 1325692194 31984 127.0.0.1 (4 Jan 2012 15:49:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 4 Jan 2012 15:49:54 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: n6g2000vbg.googlegroups.com; posting-host=85.242.65.223; posting-account=nd46uAkAAAB2IU3eJoKQE6q_ACEyvPP_ User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKC X-HTTP-UserAgent: Mozilla/5.0 (Ubuntu; X11; Linux x86_64; rv:9.0) Gecko/20100101 Firefox/9.0,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-01-04T07:49:53-08:00 List-Id: 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-gnatlink.html 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. I'd appreciate any help! Best, Erich ---- P.S. Running 64bit Ubuntu 10.04 with gcc 4.4.3 and GNAT-GPS 4.3.5 from the Ubuntu 10.04 package as IDE. The version of GNAT used: gnatls -v GNATLS 4.4.3 Copyright (C) 1997-2008, Free Software Foundation, Inc. Source Search Path: /usr/lib/gcc/x86_64-linux-gnu/4.4.3/adainclude/ Object Search Path: /usr/lib/gcc/x86_64-linux-gnu/4.4.3/adalib/ Project Search Path: /usr/share/ada/adainclude/