From: Jacob Sparre Andersen <jacob@jacob-sparre.dk>
Subject: Re: Storage_Size in a Simple Program
Date: Mon, 22 Oct 2018 07:46:22 +0200
Date: 2018-10-22T07:46:22+02:00 [thread overview]
Message-ID: <878t2qcz4h.fsf@jacob-sparre.dk> (raw)
In-Reply-To: 1nx0yp3.x6ss3k18nq71lN%csampson@inetworld.net
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."
next prev parent reply other threads:[~2018-10-22 5:46 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 [this message]
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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox