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-Thread: 103376,db8388c6b42d398 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!news.germany.com!proxad.net!feeder1-2.proxad.net!news.in2p3.fr!in2p3.fr!not-for-mail From: xavier grave Newsgroups: comp.lang.ada Subject: Re: How do I go about creating a minimal GNAT runtime? Date: Sun, 25 Jan 2009 21:30:48 +0100 Organization: In2p3 Message-ID: References: NNTP-Posting-Host: ipnnarval.in2p3.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ccpntc8.in2p3.fr 1232915449 13329 134.158.92.7 (25 Jan 2009 20:30:49 GMT) X-Complaints-To: newsmaster@cc.in2p3.fr NNTP-Posting-Date: Sun, 25 Jan 2009 20:30:49 +0000 (UTC) User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) In-Reply-To: X-Enigmail-Version: 0.95.0 Xref: g2news1.google.com comp.lang.ada:3492 Date: 2009-01-25T21:30:48+01:00 List-Id: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Just a few words about cross compiling. For targeting x86 hardware, I'm using a standard GNAT GPL compiler for GNU/Linux (2007 for the moment). I'm copying locally the run time sources and then after patch them (thanks to quilt). So for other target (MIPS) a simple way may be to use a native MIPS GNAT compiler (for example in a Debian env running in Qemu) ? I have used a cross compiler in order to target ppc405 hardware when I was doing some tests (I will have to port lovelace when my ppc knowledge reach a critical threshold :) ). xavier Lucretia a �crit : > 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. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkl8y/gACgkQVIZi0A5BZF69NQCdHILKYx8wpFyamxKjcuFBnwdI oOgAoJ2YzR1Vw1dJdPZQ48WD/NNvoZWI =7zpM -----END PGP SIGNATURE-----