comp.lang.ada
 help / color / mirror / Atom feed
From: Anh Vo <anhvofrcaus@gmail.com>
Subject: Re: Storage_Size in a Simple Program
Date: Thu, 25 Oct 2018 15:23:26 -0700 (PDT)
Date: 2018-10-25T15:23:26-07:00	[thread overview]
Message-ID: <d2ea7996-1880-42d0-b5ea-6b414b5022c2@googlegroups.com> (raw)
In-Reply-To: <1nx5k9a.1n8zqjs1xf0pe6N%csampson@inetworld.net>

On Wednesday, October 24, 2018 at 2:07:55 AM UTC-7, Charles H. Sampson wrote:
> Charles H. Sampson <csampson@inetworld.net> 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.
 
How about use task wrapper and pragma Storage_Size (...) combo.

Anh Vo


      parent reply	other threads:[~2018-10-25 22:23 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-21 21:35 Storage_Size in a Simple Program Charles H. Sampson
2018-10-22  4:00 ` Simon Wright
2018-10-22  5:46 ` Jacob Sparre Andersen
2018-10-22 11:39   ` joakimds
2018-10-22 12:17     ` Egil H H
2018-10-22 13:51       ` Simon Wright
2018-10-24  9:07 ` Charles H. Sampson
2018-10-24 20:51   ` Niklas Holsti
2018-10-25 13:37     ` joakimds
2018-10-25 15:56       ` Simon Wright
2018-10-25 21:32         ` Niklas Holsti
2018-10-25 21:39         ` joakimds
2018-10-29 20:58           ` Randy Brukardt
2018-10-30 19:31             ` Niklas Holsti
2018-10-31 20:45               ` Randy Brukardt
2018-10-25 22:23   ` Anh Vo [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox