comp.lang.ada
 help / color / mirror / Atom feed
From: "Sergey Koshcheyev" <serko84@hotmail.com>
Subject: Re: Curiousity: pragma No_Run_Time for Gnat
Date: Mon, 24 Sep 2001 23:14:22 +0200
Date: 2001-09-24T23:14:22+02:00	[thread overview]
Message-ID: <9oo7ne$145d$1@ns.felk.cvut.cz> (raw)
In-Reply-To: 9oo006$fdf$1@nh.pace.co.uk


"Marin David Condic" <dont.bother.mcondic.auntie.spam@[acm.org> wrote in
message news:9oo006$fdf$1@nh.pace.co.uk...
> The GNAT reference manual says this about pragma No_Run_Time:
>
> <snip>
>
> Would this mean that the Gnat 3.13p I have installed on my PC here would
> generate code that assumes nothing about the environment other than the
> processor it is targeting? (Assuming that the code did not contain
> constructs for which runtime is required.) That is to say - if I write a
> procedure that contains a "pragma No_Run_Time" directive, that if I can
get
> it past the compiler, I'll have raw machine code with no OS calls, no
> runtime calls, nothing except x86 machine code?

My experience (I don't have the GNORT documentation) was that GNAT indeed
produced "self-contained" executables when this pragma was used, except it
once needed to call memcpy from the C library (when copying arrays), but I
linked that in statically.

Serge Robyns has written a small OS kernel using GNAT and pragma No_Run_Time
this way. It can be found at http://web.wanadoo.be/rc.s/AdaOS/index.html

Sergey Koshcheyev





  reply	other threads:[~2001-09-24 21:14 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-24 19:02 Curiousity: pragma No_Run_Time for Gnat Marin David Condic
2001-09-24 21:14 ` Sergey Koshcheyev [this message]
2001-09-24 21:54   ` Marin David Condic
2001-09-25  7:32     ` Sergey Koshcheyev
2001-09-25 14:00       ` Marin David Condic
2001-09-25 14:14         ` Lutz Donnerhacke
2001-09-25 19:40           ` Robert Dewar
2001-09-26  9:04             ` Lutz Donnerhacke
2001-09-25 15:20         ` Sergey Koshcheyev
2001-09-25  7:36     ` Jean-Marc Bourguet
2001-09-25  7:43   ` Peter Amey
2001-09-25 14:02     ` Marin David Condic
     [not found] <Pine.LNX.4.33.0109251343310.2841-100000@lagoa.niaad.liacc.up.pt>
2001-09-25 13:20 ` David C. Hoos
  -- strict thread matches above, loose matches on Subject: below --
2001-09-25 14:09 M. A. Alves
2001-09-25 13:05 ` chris.danx
2001-09-25 13:07 ` Jacob Sparre Andersen
2001-09-25 13:37 ` Sergey Koshcheyev
     [not found] <Pine.LNX.4.33.0109251630310.3066-100000@lagoa.niaad.liacc.up.pt>
2001-09-25 14:48 ` Samuel Tardieu
2001-09-25 16:49 M. A. Alves
2001-09-25 15:05 ` chris.danx
2001-09-25 15:38   ` Marin David Condic
2001-09-25 17:07 M. A. Alves
replies disabled

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