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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.linkpendium.com!news.linkpendium.com!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 24 Oct 2018 04:07:50 -0500 Newsgroups: comp.lang.ada Subject: Re: Storage_Size in a Simple Program From: csampson@inetworld.net (Charles H. Sampson) Date: Wed, 24 Oct 2018 02:07:50 -0700 Message-ID: <1nx5k9a.1n8zqjs1xf0pe6N%csampson@inetworld.net> References: <1nx0yp3.x6ss3k18nq71lN%csampson@inetworld.net> User-Agent: MacSOUP/2.8.5 (ea919cf118) (Mac OS 10.12.6) X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-WPdNNGYlRRTM7BrlcnTdyeJYfu1dIaVxfGkmhqW7XYstrPgvgKAmt4aXrO/T9PWv4dVbzY6WC0EUwLR!Oefs5cnTToB7Ug5jZr4ogqA6vBO81zjyh0sqwOL/3bBn/4bVwbaKjKCcKpbPl6wMhUrYHgIwMncs X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2525 Xref: reader02.eternal-september.org comp.lang.ada:54702 Date: 2018-10-24T02:07:50-07:00 List-Id: Charles H. Sampson wrote: > I've got a conceptually simple program that uses a lot of memory. It is > highly recursive (using a lot of stack) and also puts a lot of stuff on > the heap. Is there any way to specify that a lot of memory is needed > other than pragma Storage_Size? > > As it is, I have three totally artificial tasks hidden in packages. The > packages' entry routines are simply pass-throughs to their embedded > task's entries. There are no concurrency issues because the simple > program is single-threaded at heart. > > Is that it? That's a lot of baggage just to give permission to use more > memory, particularly when there's a lot of memory lying around now. All the responses about limit/ulimit are certainly solutions, but they're not quite what I was asking about. I was looking for a solution written in Ada. I've been around Ada long enough to remember that a goal was to be able to completely express programs in Ada itself without having to worry about outside influences. (I write this knowing that the semantics of pragma Storage_Size are not at all tight.) To my knowledge, the current specification of Ada comes closer to that goal than any other language. Charlie -- Nobody in this country got rich on his own. You built a factory--good. But you moved your goods on roads we all paid for. You hired workers we all paid to educate. So keep a big hunk of the money from your factory. But take a hunk and pay it forward. Elizabeth Warren (paraphrased)