comp.lang.ada
 help / color / mirror / Atom feed
From: "Rego, P." <pvrego@gmail.com>
Subject: Re: Return unconstrained types in ZFP
Date: Mon, 3 Dec 2012 16:54:53 -0800 (PST)
Date: 2012-12-03T16:54:53-08:00	[thread overview]
Message-ID: <b51c0096-d773-4837-a01f-d229a0b55a28@googlegroups.com> (raw)
In-Reply-To: <523bdbf9-5a0f-446c-a1ea-92ce58a8fece@googlegroups.com>

> Returning unconstrained objects from functions requires the so-called secondary stack in GNAT.  If you want to use it you need the files s-secsta.ad(s|b) and s-stoele.ad(s|b). (Then you cannot call your run time system a "zero footprint" system anymore as the footprint is > 0)

I took a look in these files, at first it would be a good try. But you made a good point... if I were to use the secondary stack I could not call my rts a "zero footprint" (so I thought twice...)

> The ATmega2560 is relatively big, you probably dont have to care.  Unconstrained arrays are nice syntax sugar.  If you are short on RAM or flash (I always am) you don't want to use that feature, however.

Now I am not short of RAM and flash, but I'm sure I will be soon. You are right.



  reply	other threads:[~2012-12-04  0:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-02  2:38 Return unconstrained types in ZFP Rego, P.
2012-12-02  3:29 ` Shark8
2012-12-04  1:08   ` Rego, P.
2012-12-02 18:13 ` Luke A. Guest
2012-12-04  0:59   ` Rego, P.
2012-12-02 18:27 ` rrr.eee.27
2012-12-04  0:54   ` Rego, P. [this message]
2012-12-03 12:25 ` Stephen Leake
2012-12-04  1:15   ` Rego, P.
2012-12-04  8:40   ` Stephen Leake
2012-12-04 13:21     ` Britt
2012-12-05  3:34       ` Stephen Leake
2012-12-05 13:48         ` Britt
replies disabled

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