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: 103376,5059e1c3870d4dc8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news3.google.com!feeder.news-service.com!feeder.news-service.com!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: Ada on Android? Date: Tue, 6 Sep 2011 10:33:50 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <82zkiihpjo.fsf@stephe-leake.org> <657d70d1-2df5-4436-a44c-c97228daff27@l4g2000vbv.googlegroups.com> <82pqjeh3mq.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 6 Sep 2011 10:33:50 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="qAdDANJsLWqXAvsVHU9uOQ"; logging-data="25556"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Loe3ZMbkx7iWih5/Eszet9+xfzXkUfxs=" User-Agent: Pan/0.134 (Wait for Me; GIT cb32159 master) Cancel-Lock: sha1:IMBZsVFHR5gAFMs2hmzwhPN7Mvw= Xref: g2news2.google.com comp.lang.ada:21828 Date: 2011-09-06T10:33:50+00:00 List-Id: On Mon, 05 Sep 2011 21:16:13 -0400, Stephen Leake wrote: > onox writes: > >> On Sep 5, 7:22 pm, Stephen Leake >> wrote: >>> Has anyone here done any Ada for Android? >>> >>> >> You might be interested in checking the GNATDroid (Android 2.3+) cross- >> compiler for FreeBSD at http://www.dragonlace.net/ > > I don't need to target ARM; the Android API is for the JVM target. Was. As of Android 2.3, the API has also been opened up to native (usually ARM) code. See http://developer.android.com/sdk/ndk/index.html There was some support for C on earlier Android versions but as of 2.3 it's supposed to be complete and for C++ too. Performance aside, this may be a better approach than targetting the JVM. For example, is it possible the Ada compiler hits some difference between JVM and Dalvik that isn't important to the Java compiler? This (in 2.3) was apparently intended as a sop to the C++ community but opens the way to Ada as well via the Dragonlace compiler (or my so far unsuccessful attempts at building FSF Gnat 4.6/4.7 to target Arm on Linux). > The problem is binding to the Android API; I don't see any mention of > that on the DragonLace.Net page. The NDK documentation will cover that (for C++ anyway); as far as I can see, it's a mess. You may not ever need Java but you will need the SDK's GUI builder (and from the SDK examples, that still requires hand editing XML!) A GTKAda binding to that mess would be nice ... (though probably difficult to impossible) Meanwhile, I think getting the ACATS suite to pass on Android is quite impressive. Kudos to jrmarino. Here, I have FreeBSD going in VirtualBox on my laptop, and am working through installing the tools via ports. (GTK took 24 hours building several hundred packages from source; and now GPS insists on building an obsolete GCC4.5.x before it will install...) Then my cheap Flytouch pad is only Android 2.2(Froyo). I may have to look around for an upgrade to 2.3... I'll report if/when I have a HelloWorld running. But I think we're close. - Brian