comp.lang.ada
 help / color / mirror / Atom feed
From: coding.rascal@gmail.com
Subject: Re: Ada on Android and iOS?
Date: Wed, 22 Jan 2014 13:35:00 -0800 (PST)
Date: 2014-01-22T13:35:00-08:00	[thread overview]
Message-ID: <d42aabb3-1723-4511-ab46-9b02bece447f@googlegroups.com> (raw)
In-Reply-To: <a77be7f6-4583-4927-a908-0e81b317c8d4@googlegroups.com>

Hi John,

Thanks for all the great info, and a BIG thanks for coming out with GNATDroid. =) 

Yeah, I figured I was being a bit too naive on this whole cross compiling effort, especially to get Ada going. 

1) How were you able to figure out that you needed to patch GCC? Was it like the build would fail and you had to dig into the GCC code and figure out what the offending code was trying to do? Or was it more like the cross compiler built successfully but the ACATS failed and you dug into the assembler to figure out why it failed? I've never patched a compiler before, nor have I ever taken a compiler course in college.

2) What did you mean when you said "I had to implement the target and some functionality"? Did you have to implement something in the GNAT run time to use an Android sub-system?

3) For the target header files, did you use the NDK header files and combined them with newer Linux headers from somewhere else like I did?
 
I'll take a look at the GNATDroid make files as you suggested. BTW, is there a mailing list or something that you and anyone else involved with GNATDroid
collaborate on? I think it would be interesting to find out what goes behind the scene of maintaining GNATDroid.

- Coding Rascal

On Wednesday, January 22, 2014 8:55:53 AM UTC-8, jrmarino wrote:

<snip>
>
> I'm the creator of gnatdroid (Ada crosscompiler from FreeBSD/DragonFly to Android).  At least with gcc 4.6 and 4.7, GNAT doesn't build "out of the box" for the android target.  For 4.6 I had to implement the target and some functionality, and as I found out yesterday, I have to do more for gcc4.7.
> 
> 
<snip>
>
> 
> > 1) Will the 6 step process I laid out above only lead me to a dead end? I know about GNATdroid. The main reason why I am trying to avoid using GNATdroid is because I am hoping I can figure out a common process that allows me to create toolchains for both Android and iOS (hopefully, with the need to simply switch between the set of header files between the two platforms).
> 
> 
> 
> You're at a dead-end because you think a stock gcc can build an ada compiler without patches.  You have some good news though:
> 
> 1) A couple of days ago I made GNATDroid use binutils 2.24 (nonfactor as 2.21 is just fine too)
> 
> 2) As we speak, and totally by coincidence, I'm running a testsuite on GNATDroid based on gcc 4.7.  The port will be updated today most likely.  It's on C9 right now, passed every test so far, but that was after I implemented additional functionality to the gcc 4.7 base on top of my previous patchset.

  reply	other threads:[~2014-01-22 21:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-22 11:39 Ada on Android and iOS? coding.rascal
2014-01-22 15:43 ` Ludovic Brenta
2014-01-22 16:55 ` jrmarino
2014-01-22 21:35   ` coding.rascal [this message]
2014-01-22 23:07     ` jrmarino
2014-01-23 19:20 ` Dan'l Miller
2014-01-23 20:19   ` Micronian Coder
2014-01-23 23:48 ` Lucretia
2023-06-20 13:31   ` Guillermo Hazebrouck
2023-06-20 17:43     ` Luke A. Guest
2023-06-20 18:08       ` Luke A. Guest
2023-06-20 18:45         ` Luke A. Guest
2023-06-20 19:17       ` Simon Wright
2023-06-20 19:29         ` Luke A. Guest
2023-06-20 19:35         ` Luke A. Guest
2023-06-20 21:27     ` Luke A. Guest
2023-06-21  7:01       ` Guillermo Hazebrouck
2023-06-21  9:06         ` Luke A. Guest
replies disabled

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