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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6b93224dbe2bb55b X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.79.6 with SMTP id f6mr1783997pax.3.1354472877672; Sun, 02 Dec 2012 10:27:57 -0800 (PST) Received: by 10.50.0.166 with SMTP id 6mr1374925igf.7.1354472877634; Sun, 02 Dec 2012 10:27:57 -0800 (PST) Path: 6ni21476pbd.1!nntp.google.com!kt20no15615818pbb.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 2 Dec 2012 10:27:57 -0800 (PST) In-Reply-To: <3254b304-ed8b-4601-8a3c-ab3df74d84ad@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=93.203.221.103; posting-account=mOyWBQoAAAD7S-NBmMUOr9hRClcL0vqR NNTP-Posting-Host: 93.203.221.103 References: <3254b304-ed8b-4601-8a3c-ab3df74d84ad@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <523bdbf9-5a0f-446c-a1ea-92ce58a8fece@googlegroups.com> Subject: Re: Return unconstrained types in ZFP From: rrr.eee.27@gmail.com Injection-Date: Sun, 02 Dec 2012 18:27:57 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-12-02T10:27:57-08:00 List-Id: On Sunday, December 2, 2012 3:38:22 AM UTC+1, Rego, P. wrote: > Dear fellows,=20 >=20 > I am trying to implement, for an ATmega2560 (Arduino Mega) micro-controll= er using ZFP in GNAT-AVR, an USART unconstrained Get string like Returning unconstrained objects from functions requires the so-called secon= dary 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 "ze= ro footprint" system anymore as the footprint is > 0) BTW, AVR-Ada already provides the secondary stack for those who want to use= this Ada feature without looking at the generated Asm. The ATmega2560 is = relatively big, you probably dont have to care. Unconstrained arrays are n= ice syntax sugar. If you are short on RAM or flash (I always am) you don't= want to use that feature, however. HTH Rolf