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!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: Luke A. Guest Newsgroups: comp.lang.ada Subject: Re: Tiva + Ada Date: Thu, 13 Feb 2014 21:23:49 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: <1547661175414018961.417057laguest-archeia.com@nntp.aioe.org> References: <44f053fc-72a9-44f0-8a0d-c919632d57e8@googlegroups.com> <%r2Lu.9395$yo1.4292@fx26.fr7> NNTP-Posting-Host: /VLyViYjUcQIb57KwvUEag.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: NewsTap/4.0.1 (iPhone/iPod Touch) X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:18536 Date: 2014-02-13T21:23:49+00:00 List-Id: I asked which is you were on because if you were on 64 bit linux I could easily package up the latest compiler, I.e 4.9.0 The patch in tamp doesn't apply cleanly anymore. I have a patched GCC which allows me, with a bit of fiddling, to build a cross compiler with gnattools without rts. You can use any prebuilt compiler eg arm-Linux and just redirect it using the --RTS flag. As for getting some niceties of the rts on bare metal, it works the same for all platforms, start with a system.ads and the basic packages providing compiler intrinsics, then you can add last_chance_handler for local exceptions, then memset. Etc, etc which allows you to copy objects about. If you want to return in constrained objects you need to add a simple secondary stack, this can be say 4-8kb allocated in the linker script and referenced in the secsta.adb. If you want more then you just enable it in the restrictions pragma use it and wait for the compiler to tell you what's missing. Luke