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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.99.6.142 with SMTP id 136mr9232160pgg.50.1500026206326; Fri, 14 Jul 2017 02:56:46 -0700 (PDT) X-Received: by 10.36.89.7 with SMTP id p7mr136161itb.4.1500026205965; Fri, 14 Jul 2017 02:56:45 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!v202no773089itb.0!news-out.google.com!f200ni4454itc.0!nntp.google.com!v202no773086itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 14 Jul 2017 02:56:45 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.163.1.105; posting-account=Srm5lQoAAAAEMX9rv2ilEKR6FDPapmSq NNTP-Posting-Host: 193.163.1.105 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: How to use Zero Footprint runtime with GNAT GPL 2017 From: Mark Lorenzen Injection-Date: Fri, 14 Jul 2017 09:56:46 +0000 Content-Type: text/plain; charset="UTF-8" Xref: news.eternal-september.org comp.lang.ada:47415 Date: 2017-07-14T02:56:45-07:00 List-Id: On Friday, July 14, 2017 at 10:34:16 AM UTC+2, joak...@kth.se wrote: > > If I could get compilation to work with ZFP runtime, I've been planning to try using GNAT.IO for printing to "standard out". And if that doesn't work, importing OS specific subprograms... Using the following project file, it seems to work fine: project Native is for Languages use ("Ada"); for Main use ("hello.adb"); end Native; main.adb is a simple "Hello World!" procedure and I can get it to compile with native RTS and with --RTS=zfp (or the Runtime project attribute). In the zfp case, the executable is smaller but calls to Ada.Text_IO is allowed. Looking into the RTS source code, it seems that a stripped-down version of Ada.Text_IO is supplied with the zfp RTS. Regards, Mark L