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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,6b93224dbe2bb55b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.87.234 with SMTP id bb10mr3202125pab.36.1354677506364; Tue, 04 Dec 2012 19:18:26 -0800 (PST) MIME-Version: 1.0 Path: s9ni28245pbb.0!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!backlog2.nntp.ams.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Re: Return unconstrained types in ZFP Date: Sun, 2 Dec 2012 18:13:39 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <3254b304-ed8b-4601-8a3c-ab3df74d84ad@googlegroups.com> NNTP-Posting-Host: 1/dVLGo/YMi9kqpe3//saQ.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: slrn/pre1.0.0-18 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 X-Original-Bytes: 1217 Date: 2012-12-02T18:13:39+00:00 List-Id: You need to define a small secondary stack, this can be defined in the linker script and then imported into the correct package. This is the only way to return unconstrained types. If you look in s-secsta you will see what needs to be defined, you can implement it in a very basic way, it does not need to be as complex as the system version. Also, you need the memory allocation functions, if AVR Ada provides memcpy, bzero, etc. just import them, see the runtime sources again for how it does this on Linux. Otherwise, you will have to write your own. Luke.