comp.lang.ada
 help / color / mirror / Atom feed
From: Mark Lorenzen <mark.lorenzen@gmail.com>
Subject: Re: How to use Zero Footprint runtime with GNAT GPL 2017
Date: Fri, 14 Jul 2017 02:56:45 -0700 (PDT)
Date: 2017-07-14T02:56:45-07:00	[thread overview]
Message-ID: <d31d52d5-09e9-4bc8-bed5-aebe4c3d8757@googlegroups.com> (raw)
In-Reply-To: <abd3ddc4-671c-4b6b-84bd-5c4c5371a62b@googlegroups.com>

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

  parent reply	other threads:[~2017-07-14  9:56 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-14  8:34 How to use Zero Footprint runtime with GNAT GPL 2017 joakimds
2017-07-14  8:42 ` Egil H H
2017-07-14  8:58   ` joakimds
2017-07-14 15:41     ` Simon Wright
2017-07-14 21:35       ` ake.ragnar.dahlgren
2017-07-17  7:13         ` Mark Lorenzen
2017-07-17  7:27           ` Simon Wright
2017-07-17 20:52             ` Luke A. Guest
2017-07-26 21:29               ` joakimds
2017-07-26 21:31             ` joakimds
2017-07-26 21:28           ` joakimds
2017-07-14  9:56 ` Mark Lorenzen [this message]
2017-07-15 13:16 ` Mr. Man-wai Chang
2017-07-15 16:29   ` Lucretia
2017-07-16 13:39     ` Jacob Sparre Andersen
2017-07-16 15:00       ` Lucretia
2017-07-16 14:17     ` Mr. Man-wai Chang
replies disabled

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