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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5bef5e9c5bedc675 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-02 14:16:23 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!chcgil2-snh1.gtei.net!news.bbnplanet.com!nycmny1-snf1.gtei.net!news.gtei.net!colt.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Re: [No_Elaboration_Code] GNAT still generating rep_to_pos, why? Date: Fri, 02 Jan 2004 22:16:21 +0000 Message-ID: References: NNTP-Posting-Host: abyss2.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.demon.co.uk 1073081782 22447 62.49.62.197 (2 Jan 2004 22:16:22 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Fri, 2 Jan 2004 22:16:22 +0000 (UTC) User-Agent: Pan/0.14.0 (I'm Being Nibbled to Death by Cats!) Xref: archiver1.google.com comp.lang.ada:4052 Date: 2004-01-02T22:16:21+00:00 List-Id: On Fri, 02 Jan 2004 16:17:59 -0500, Stephen Leake wrote: > "Luke A. Guest" writes: > >> I have this in my gnat.adc (not gnat.ads) file: >> >> pragma No_Run_Time; >> pragma Restrictions(No_Exceptions); >> >> This is in the GNAT RM from the GCC site: >> >> > > Cool. So it's supported, and documented. I'd say you have found a bug > in the implementation of No_Run_Time, but I'm not really clear. Ok ;-/ >> Although a kernel is not a *normal* program, Ada was designed to be >> used in the embedded sector with or without an OS, so there must be >> a solution as somebody must've needed to do what I'm wanting to do >> at some point. > > Well, when Ada is used "without an OS", that usually means the > compiler vendor supplies a "run-time" that looks a lot like a > multi-threading OS. That run-time may be written in Ada. If it is, it Currently, I have copied over the following files from the gcc-3.3.2/gcc/ada dir to my project dir: 1ic.ads, interfac.ads, s-stoele.ad[bs], s-unstyp.ads, system.ads & unchconv.ads. Really, all you need for this is the basic stuff, no exception handling, no tasking, etc. But what files this is in, I have no clue ;-) > probably uses some custom stuff in the vendor's compiler to get things > done. > > If all you need in the way of "custom stuff" is the gcc flags above, > I'd say GNAT is in very good shape for doing what you want. Yeah, that does reduce the final ELF file, which is good. But, like I said, it's better to get the compiler to do it - if that's what it's supposed to do. > At the same time, it wouldn't hurt to send a message to > report@gnat.com, describing what you are doing and what you'd like to > see. Phrase it as a bug in No_Run_Time if you want. If enough people > (especially paying customers) ask for the same thing, eventually it > will get done. Is there a GNAT specific (user) mail list I can join? Thanks, Luke.