From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Storage_Size in a Simple Program
Date: Wed, 31 Oct 2018 15:45:06 -0500
Date: 2018-10-31T15:45:06-05:00 [thread overview]
Message-ID: <prd48j$shp$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: g3rprtFfc9dU1@mid.individual.net
"Niklas Holsti" <niklas.holsti@tidorum.invalid> wrote in message
news:g3rprtFfc9dU1@mid.individual.net...
> On 18-10-29 22:58 , Randy Brukardt wrote:
>> <joakimds@kth.se> wrote in message
>> news:2635fb12-5836-4713-998d-e8179b801500@googlegroups.com...
>>>> Since the main program's stack limit is determined by the OS, I don't
>>>> see how an Ada aspect/pragma can affect it.
>> ...
>>> 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
>>
>> That's the only way I know for Windows. Janus/Ada has a binder option
>> that
>> sets the stack size in the generated .OBJ file, and the Windows linker
>> then
>> puts that in the executable. I believe that GNAT has something similar on
>> Windows (haven't had to try that to date).
>
> That sounds as if the environment stack size _could_ theoretically be
> specified in the Ada source, for the Janus/Ada compiler to export to the
> Janus/Ada binder, which would then set it in the .OBJ for the Windws
> linker. Still we would need a standard way (a pragma or aspect, no doubt)
> to specify the size in the Ada source. That way is currently missing,
> AFAIK.
Yup. Sounds like a reasonable enhancement request (too late for Ada 2020,
unfortunately, but possibly in a future Corrigendum or revision). I suggest
sending it and a use-case to Ada-Comment.
Randy.
next prev parent reply other threads:[~2018-10-31 20:45 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 [this message]
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