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!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nnx.oleane.net!oleane!freenix!proxad.net!feeder2-1.proxad.net!news8-e.free.fr!not-for-mail From: JCS Subject: Re: GNAT and no runtime Date: Fri, 28 May 2004 17:13:51 +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: 28 May 2004 17:14:04 MEST NNTP-Posting-Host: 217.108.100.123 X-Trace: 1085757244 news8-e.free.fr 10016 217.108.100.123:2972 X-Complaints-To: abuse@proxad.net Xref: controlnews3.google.com comp.lang.ada:895 Date: 2004-05-28T17:14:04+02:00 List-Id: On Wed, 26 May 2004 00:46:26 -0700, Rolf Ebert wrote: > I cannot answer your detailed questions. I once had a look at the > GNAT runtime, too. A good starting point is the private part of > system.ads and the corresponding explanations in targparm.ads. > > 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. 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). OK, I've finally been able to implement the minimal runtime, and it seems to work (I've not yet tested if stack-checking is working, but it shouldn't be too hard to make it working). I've made very little changes, and implemented a stupid heap, that was needed. The only thing that is still boring is that gcc makes some "memcpy" calls when optimisation is turned on. I've so made one, but do you know a way to avoid gcc make those calls and generate code instead? Regards, JC