comp.lang.ada
 help / color / mirror / Atom feed
From: joakimds@kth.se
Subject: Re: Storage_Size in a Simple Program
Date: Thu, 25 Oct 2018 14:39:18 -0700 (PDT)
Date: 2018-10-25T14:39:18-07:00	[thread overview]
Message-ID: <2635fb12-5836-4713-998d-e8179b801500@googlegroups.com> (raw)
In-Reply-To: <lymur2j9z6.fsf@pushface.org>

> Since the main program's stack limit is determined by the OS, I don't
> see how an Ada aspect/pragma can affect it.

Thinking more about his I can't help but wonder if it is possible to circumvent using limit/ulimit by taking advantage of getrlimit/setrlimit:
https://stackoverflow.com/questions/2279052/increase-stack-size-in-linux-with-setrlimit
The Ada run-time could perhaps take advantage of getrlimit/setrlimit on Linux to modify the size of the stack as the first step of elaboration.

On Windows it may be possible to specify the size of stack at link time. Consider for example the Windows linker that has a flag /Stack to be able to set the size of the stack in bytes: https://msdn.microsoft.com/en-us/library/y0zzbyt4.aspx

Best regards,
Joakim


  parent reply	other threads:[~2018-10-25 21:39 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 [this message]
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