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,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!d36g2000prf.googlegroups.com!not-for-mail From: Lucretia Newsgroups: comp.lang.ada Subject: How do I go about creating a minimal GNAT runtime? Date: Sat, 24 Jan 2009 12:47:54 -0800 (PST) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 90.194.162.90 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1232830074 21435 127.0.0.1 (24 Jan 2009 20:47:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 24 Jan 2009 20:47:54 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d36g2000prf.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:3486 Date: 2009-01-24T12:47:54-08:00 List-Id: Hi (again), It's been a while, but I'm coming back to my Ada kernel again. I've been messing with my helo_world_kernel which I built using no runtime (see http://www.archeia.com for more info). Having just spoken to Ludovic on #Ada, he pointed out that the gnat tools can use a basic cross tool set, like the ones I have built myself (again, see the above link). My toolset comprises of a gnat1 compiler and a gnatbind for my targets. I found that it does work using the --GCC and --GNATBIND flags, and I need to make sure the cross tools and the host tools are of the same GCC version otherwise GNAT throws up ALI format errors. 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? Thanks, Luke.