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!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.109.59.44.78.mobile.3.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Storage_Size in a Simple Program Date: Mon, 22 Oct 2018 07:46:22 +0200 Organization: JSA Research & Innovation Message-ID: <878t2qcz4h.fsf@jacob-sparre.dk> References: <1nx0yp3.x6ss3k18nq71lN%csampson@inetworld.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: franka.jacob-sparre.dk; posting-host="109.59.44.78.mobile.3.dk:109.59.44.78"; logging-data="18661"; mail-complaints-to="news@jacob-sparre.dk" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:B12pVz8GQ6ytYsYsbhtIGS4W+6M= Xref: reader02.eternal-september.org comp.lang.ada:54687 Date: 2018-10-22T07:46:22+02:00 List-Id: csampson@inetworld.net (Charles H. Sampson) writes: > 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? Usually programs have "unlimited" access to the heap. Most operating systems put a limit on the stack size, but the default limit is most likely adjustable. On Linux I let some Ada programs run with 4 Gb stack. The command to change the default stack size is: limit stacksize 4G (the setting is local to the shell you run the command in) Greetings, Jacob -- "There is nothing worse than having only one drunk head."