comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP>
Subject: GCC and cross compiling Ada, was: Re: avr-ada ubuntu cross-compiler build failed
Date: Thu, 10 Feb 2011 12:18:04 +0000 (UTC)
Date: 2011-02-10T12:18:04+00:00	[thread overview]
Message-ID: <ij0l1s$cn4$1@news.eternal-september.org> (raw)
In-Reply-To: op.vqku2dkzule2fv@garhos

On 2011-02-08, Yannick Duch�ne <yannick_duchene@yahoo.fr> wrote:
> If this can help you, while I was trying to get some resource about misc  
> targets sysroots (system/kernel headers), I was lead to this PDF document,  
> which is the cleanest and more pedagogical I have ever seen about  
> explaining the basics of building a cross compiler:
> https://www6.software.ibm.com/developerworks/education/l-cross/l-cross-ltr.pdf
> (hope you newsreader will not messup this averagely long URL)
>
> The title is ?Build a GCC-based cross compiler for Linux?, but believe  
> this is applicable for any other host-target pairs. Building an Ada  
> compiler will come as natural part of the same process if you use either  
> GNAT-GCC or GNAT-MinGW sources.
>

I've now read through this document briefly and it basically covers the
standard cross-compiler process for the C part of GCC.

Cross compiling for Ada has additional issues, including run time library
and exception support.

I understand that multi-lib support for Ada is been worked on (and is
probably supported by now, but you would need to check), but this has also
been a issue with past versions of GCC as well.

While I have Ada programs working in a cross-compiler environment, they have
always been run under RTEMS and not as a standalone image.

Sometime over the next couple of months or so, I am probably going to look
at what is involved in getting Ada code to run standalone on a ARM7TDMI
device. (I won't be spending too much time on this; if it proves to be a
major issue I will just use C even though it would be nice to use Ada.
Sorry. :-))

Simon.

-- 
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Microsoft: Bringing you 1980s technology to a 21st century world



  reply	other threads:[~2011-02-10 12:18 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-05 17:30 avr-ada ubuntu cross-compiler build failed Adrianr
2011-02-06 20:28 ` Yannick Duchêne (Hibou57)
2011-02-08  9:24 ` Yannick Duchêne (Hibou57)
2011-02-10 12:18   ` Simon Clubley [this message]
2011-02-10 12:53     ` GCC and cross compiling Ada, was: " Simon Clubley
2011-02-10 17:10     ` Yannick Duchêne (Hibou57)
2011-02-10 19:46       ` Simon Clubley
2011-02-11 12:51 ` Adrianr
2011-02-11 15:13   ` Brian Drummond
2011-02-11 18:16     ` Simon Wright
2011-02-11 18:44       ` Brian Drummond
2011-02-12 13:27         ` Simon Wright
2011-02-12 17:49           ` Brian Drummond
2011-02-12 21:45             ` Simon Wright
2011-02-12  6:46 ` Jacob Sparre Andersen
2011-02-12 17:03   ` Adrianr
replies disabled

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