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=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:5c81:: with SMTP id q123-v6mr752831itb.34.1540503558778; Thu, 25 Oct 2018 14:39:18 -0700 (PDT) X-Received: by 2002:aca:fdc7:: with SMTP id b190-v6mr12153oii.3.1540503558614; Thu, 25 Oct 2018 14:39:18 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.166.216.MISMATCH!75-v6no117133itm.0!news-out.google.com!n199-v6ni120itn.0!nntp.google.com!75-v6no117128itm.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 25 Oct 2018 14:39:18 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a04:ae04:9408:b600:590b:eca7:4040:641d; posting-account=HFCrOQoAAABZD_f-UUbYHm3lJDIrh-UX NNTP-Posting-Host: 2a04:ae04:9408:b600:590b:eca7:4040:641d References: <1nx0yp3.x6ss3k18nq71lN%csampson@inetworld.net> <1nx5k9a.1n8zqjs1xf0pe6N%csampson@inetworld.net> <50b40e43-623a-4015-95b3-91c5d4736e53@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2635fb12-5836-4713-998d-e8179b801500@googlegroups.com> Subject: Re: Storage_Size in a Simple Program From: joakimds@kth.se Injection-Date: Thu, 25 Oct 2018 21:39:18 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:54710 Date: 2018-10-25T14:39:18-07:00 List-Id: > Since the main program's stack limit is determined by the OS, I don't > see how an Ada aspect/pragma can affect it. Thinking more about his I can't help but wonder if it is possible to circumvent using limit/ulimit by taking advantage of getrlimit/setrlimit: https://stackoverflow.com/questions/2279052/increase-stack-size-in-linux-with-setrlimit The Ada run-time could perhaps take advantage of getrlimit/setrlimit on Linux to modify the size of the stack as the first step of elaboration. On Windows it may be possible to specify the size of stack at link time. Consider for example the Windows linker that has a flag /Stack to be able to set the size of the stack in bytes: https://msdn.microsoft.com/en-us/library/y0zzbyt4.aspx Best regards, Joakim