comp.lang.ada
 help / color / mirror / Atom feed
From: csampson@inetworld.net (Charles H. Sampson)
Subject: Re: Storage_Size in a Simple Program
Date: Wed, 24 Oct 2018 02:07:50 -0700
Date: 2018-10-24T02:07:50-07:00	[thread overview]
Message-ID: <1nx5k9a.1n8zqjs1xf0pe6N%csampson@inetworld.net> (raw)
In-Reply-To: 1nx0yp3.x6ss3k18nq71lN%csampson@inetworld.net

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.

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)


  parent reply	other threads:[~2018-10-24  9:07 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 [this message]
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
replies disabled

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