comp.lang.ada
 help / color / mirror / Atom feed
From: xavier grave <xavier.grave@ipno.in2p3.fr>
Subject: Re: How do I go about creating a minimal GNAT runtime?
Date: Sun, 25 Jan 2009 21:30:48 +0100
Date: 2009-01-25T21:30:48+01:00	[thread overview]
Message-ID: <glii5o$d0h$1@ccpntc8.in2p3.fr> (raw)
In-Reply-To: <eb511600-6446-4bad-b859-0d7444416a4c@d36g2000prf.googlegroups.com>

-----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-----



  parent reply	other threads:[~2009-01-25 20:30 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-24 20:47 How do I go about creating a minimal GNAT runtime? Lucretia
2009-01-25 11:13 ` Ludovic Brenta
2009-01-25 11:18   ` Ludovic Brenta
2009-01-25 14:00     ` Lucretia
2009-01-25 14:00   ` Lucretia
2009-01-25 19:43     ` Ludovic Brenta
2009-01-25 20:30 ` xavier grave [this message]
2009-01-26  6:52 ` anon
2009-01-26 21:36 ` anon
2009-02-10  2:34 ` Exceptions (was Re: How do I go about creating a minimal GNAT runtime?) anon
2009-02-16  1:41 ` How do I go about creating a minimal GNAT runtime? Hibou57 (Yannick Duchêne)
2009-02-21  9:11 ` Dimonax
2009-02-21 16:41   ` anon
2009-02-21 21:14     ` Dimonax
2009-02-22  1:36       ` anon
2009-02-27 23:42   ` Randy Brukardt
2009-03-01  1:12     ` Dimonax
2009-03-01 19:13       ` anon
2009-03-02 22:07         ` Randy Brukardt
2009-03-03  2:00           ` anon
2009-03-03 22:23             ` lucretia
2009-03-04  0:03               ` anon
2009-03-11 12:54   ` gautier_niouzes
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox