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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,95dad97c56f9de95 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-24 14:21:20 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.27.83.146!news-FFM2.ecrc.net!news.cesnet.cz!crax.cesnet.cz!news.felk.cvut.cz!not-for-mail From: "Sergey Koshcheyev" Newsgroups: comp.lang.ada Subject: Re: Curiousity: pragma No_Run_Time for Gnat Date: Mon, 24 Sep 2001 23:14:22 +0200 Organization: Czech Technical University Message-ID: <9oo7ne$145d$1@ns.felk.cvut.cz> References: <9oo006$fdf$1@nh.pace.co.uk> NNTP-Posting-Host: r41.dkm.cz X-Trace: ns.felk.cvut.cz 1001366062 37037 62.24.83.41 (24 Sep 2001 21:14:22 GMT) X-Complaints-To: usenet@ns.felk.cvut.cz NNTP-Posting-Date: Mon, 24 Sep 2001 21:14:22 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Xref: archiver1.google.com comp.lang.ada:13304 Date: 2001-09-24T23:14:22+02:00 List-Id: "Marin David Condic" wrote in message news:9oo006$fdf$1@nh.pace.co.uk... > The GNAT reference manual says this about pragma No_Run_Time: > > > > 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