From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: How to get Ada to =?utf-8?Q?=E2=80=9Ccross?= the =?utf-8?Q?ch?= =?utf-8?Q?asm=E2=80=9D=3F?= Date: Fri, 04 May 2018 16:57:10 +0100 Organization: A noiseless patient Spider Message-ID: References: <1c73f159-eae4-4ae7-a348-03964b007197@googlegroups.com> <878t9nemrl.fsf@nightsong.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="25c73b1301d872a4ef34651acedb48a8"; logging-data="28995"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/X4/74j4PLGmW1HiehHCnQt2z3+4nlZMg=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:9U4QKngYHnDZr2IbQJvniYrUimw= sha1:mmRj2p2ETsy5HRgptU2gMQ2mIi8= Xref: reader02.eternal-september.org comp.lang.ada:51971 Date: 2018-05-04T16:57:10+01:00 List-Id: Jere writes: > The secondary stack is another example. It can be implemented as > static only (I do this for my bare metal runtimes), heap, or a > combination of both based on size (I think GNAT does this normally?). In Cortex GNAT RTS, I leave it as a fixed proportion of each task's stack. (10% - in s-parame.adb). I believe that full GNAT has a mixed strategy. Info at [1] on pragma (and aspect, almost certainly) Secondary_Stack_Size - which I don't support yet[2]. Nor do I have a System.Parameter.Sec_Stack_Percentage :-( - more to do. [1] https://gcc.gnu.org/onlinedocs/gnat_rm/Pragma-Secondary_005fStack_005fSize.html [2] as in, you can of course specify it, but I ignore it. Sorry.