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-Thread: 103376,db8388c6b42d398 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!o40g2000prn.googlegroups.com!not-for-mail From: Lucretia Newsgroups: comp.lang.ada Subject: Re: How do I go about creating a minimal GNAT runtime? Date: Sun, 25 Jan 2009 06:00:01 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <3eff96d5-50ff-4cd2-84ad-ab5e8342aaaa@p23g2000prp.googlegroups.com> NNTP-Posting-Host: 90.194.162.90 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1232892001 4331 127.0.0.1 (25 Jan 2009 14:00:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 25 Jan 2009 14:00:01 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o40g2000prn.googlegroups.com; posting-host=90.194.162.90; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.0.5) Gecko/2008121622 Ubuntu/8.04 (hardy) Firefox/3.0.5,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:3489 Date: 2009-01-25T06:00:01-08:00 List-Id: On Jan 25, 11:13=A0am, Ludovic Brenta wrote: > That sounds reasonable. gnatmake (a host tool) reads the .ali files to > decide what it needs to recompile. Then it calls the cross compiler > (cross gcc), which produces new .o and .ali files, and then the cross > binder (gnatbind). > > I'm not entirely sure whether gnatlink is a host-only tool, or if you > need a cross version of it. In any case you do need a cross ld. Seems a cross gnatlink is not required as one isn't built, looking at the help text it seems it can take cross tools using extra flags. Yes, a cross ld is built at the binutils stage. > > The thing is, I've been trying to enable exceptions, but keep coming > > across big problems in that the runtime requires features that are > > being restricted, such as returning aggregates and assigning > > composites, returning unconstrained objects which requires the > > secondary stack. So, what I really need to know is, how do I create a > > runtime which is restricted in this way for bare hw access? > > I don't know the relationship (if any) between exception propagation, > exception handling and the secondary stack. Xavier Grave does :) > > Have you had a look at the OS Lovelace sources? OS Lovelace supports I can't as the server is down, again. > exceptions in th kernel; it does that by building a minimal, patched, > GNAT runtime into the kernel. Yes, I would like to see how he's done that. Luke.