comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: Porting Ada (Gnat/gcc)
Date: 06 Jun 2001 17:32:38 -0400
Date: 2001-06-06T21:48:47+00:00	[thread overview]
Message-ID: <uwv6p47m1.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: ulmn7yubx.fsf@unn.ac.uk

Alun Moon <alun.moon@unn.ac.uk> writes:

> I'm planning a project (possibly an undergraduate/masters one) to port
> Ada to a new processor.
> 
> We have a processor simulator we use in teaching, with a simple
> architecture.  I'm planning a port of the gcc back end for assembler
> generation from gcc (along with assembler and linker ports).
> 
> My colleague's eyes lit up at the thought of an Ada port (we can use
> this platform for teaching embedded systems).
> 
> Assuming I have
> 	gcc backend (assembler generation
> 	as port
> 	ld port
> from gcc and binutils
> 
> What do I need to do to have an Ada port?

The GNAT source, and a tasking OS that can interface to the GNAT
tasking run time library.

> 
> Are there library sources that need porting?

Yes, they are included in the GNAT source. The only part that should
need any work is the tasking stuff.

If you don't mind a non-tasking Ada subset, you have very little work
to do.

Oops, forgot to mention floating point; is that in hardware, or
handled by the gcc port already? Again, you can get by with an Ada
subset, but it's harder to define a non-floating point subset than a
non-tasking one.

The GNAT documentation does _not_ talk about how to port to a new
processor. Even the GNAT support team is not very helpful in this area
(I'm a paying customer, but they wanted a _lot_ of money to do a port
to a new processor). You have to be able to read the GNAT makefile and
figure things out. If your processor is 32 bits with IEEE floats, it
should not be hard at all. Mine is 16 bits with 16 bit chars, and it's
a pain!

-- 
-- Stephe



  parent reply	other threads:[~2001-06-06 21:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-05 12:39 Porting Ada (Gnat/gcc) Alun Moon
2001-06-05 21:55 ` Stefan Skoglund
2001-06-06 21:32 ` Stephen Leake [this message]
2001-06-16 16:03 ` B. Douglas Hilton
replies disabled

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