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: a07f3367d7,a287efecf9b6c0d7 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feedme.ziplink.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Clubley Newsgroups: comp.lang.ada 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) Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 10 Feb 2011 12:18:04 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="4pjzwDT2MPp9AkNxUo/C4Q"; logging-data="13028"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+s6+jh4BN/DzjSA48Di6kFCebpfA27zno=" User-Agent: slrn/0.9.8.1 (VMS/Multinet) Cancel-Lock: sha1:KdYwqk1F+I+aqd4JZ2MZyyRm/Dw= Xref: g2news2.google.com comp.lang.ada:18183 Date: 2011-02-10T12:18:04+00:00 List-Id: On 2011-02-08, Yannick Duch�ne 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