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,7a27b8f727dd1e47 X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news-in.ntli.net!news-hub.cableinet.net!blueyonder!proxad.net!feeder2-1.proxad.net!news5-e.free.fr!not-for-mail From: JCS Subject: Re: GNAT and no runtime Date: Wed, 26 May 2004 14:17:01 +0200 User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity. (Debian GNU/Linux)) Message-Id: Newsgroups: comp.lang.ada References: <46b8b50a.0405252346.5eefc74f@posting.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Organization: Guest of ProXad - France NNTP-Posting-Date: 26 May 2004 14:17:13 MEST NNTP-Posting-Host: 217.108.166.156 X-Trace: 1085573833 news5-e.free.fr 7707 217.108.166.156:2298 X-Complaints-To: abuse@proxad.net Xref: controlnews3.google.com comp.lang.ada:850 Date: 2004-05-26T14:17:13+02:00 List-Id: On Wed, 26 May 2004 00:46:26 -0700, Rolf Ebert wrote: > Start slowly putting more and more things to your runtime. You almost > certainly already have system.ads and some dummy (i.e. empty) > libgnat.a. Well, not exactly, I still use the predefined specs, and do not link with any form of library (I don't use gnatlink, but directly ld instead) > That is needed even in the case of No_Runtime. You can easily add > things like a-uncconv, s-stoele, interface, s-maccod. They all just > need to be present at compile time, but aren't needed at link time (OK, > the .ali's are, not the .o). I see, you suggest that I implement a minimal subset of libgnat. I was not planning to do that so soon. I though it wouldn't be necessary for the kernel itself. But it seems that I was wrong. Hope it won't be too hard... I've already looked a bit in the GNAT sources, but to be honnest I was a bit lost, the link you gave will probably be very helpful. Thanks. > > Replace the pragma restriction (No_Runtime) in gnat.adc by all the > detailed restrictions that you can find. Then remove the restriction > that you don't want to enforce anymore and see what runtime support is > needed and add it to your project. Yes, this is exactly what I've done, except that I still use pragma No_Runtime, just to be sure of what I'm enabling when I delete a restriction. Many thanks Rolf, JC