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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:1c09:: with SMTP id c9-v6mr3438492itc.15.1523513872749; Wed, 11 Apr 2018 23:17:52 -0700 (PDT) X-Received: by 2002:a9d:554b:: with SMTP id h11-v6mr474456oti.12.1523513872361; Wed, 11 Apr 2018 23:17:52 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!feed.usenet.farm!feeder4.feed.usenet.farm!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!e130-v6no457704itb.0!news-out.google.com!u64-v6ni581itb.0!nntp.google.com!e130-v6no457698itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 11 Apr 2018 23:17:52 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=82.228.206.35; posting-account=RSJqtQoAAAAuiRoJNVxqBSqCnJ6v9zEB NNTP-Posting-Host: 82.228.206.35 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Ada Implementation of functions and produce C for exotic architectures (Expressif) From: Patrice Freydiere Injection-Date: Thu, 12 Apr 2018 06:17:52 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:51458 Date: 2018-04-11T23:17:52-07:00 List-Id: Le mercredi 11 avril 2018 23:14:52 UTC+2, Simon Wright a =C3=A9crit=C2=A0: > Patrice Freydiere writes: >=20 > > I've been informed the current gnat is able to target C, especially > > with ZFP profile. --> > > https://blog.adacore.com/sparkzumo-part-2-integrating-the-arduino-build= -environment-into-gps > > > > Seems this target "C" is only available on gnat pro,=20 >=20 > I think so. >=20 > > I don't much program in Ada to have a professional solution, are there > > any alternatives ? i have an embedded project and wish to implements > > some core functionality in Ada, >=20 > Since the development kit from Expressif doesn't support Ada, the only > way forward I can think of would be to find out what the CPU actually is > in the chip and build/obtain a compiler for it with Ada enabled. It > looks as though it might be ARM-based, in which case it might not be too > hard. >=20 > Once you have a compiler that will target the chip, it should be > possible to build an object library that you can call up from C (I'm > assuming that you would retain most of the existing C scaffolding). >=20 > I won't pretend this would be a walk in the park. >=20 > [Later] >=20 > Downloading & setting up the virtual machine as spec'd in the ESP8266 > Getting Started Guide, the target of the 4.8.2 cross-compiler is > xtensa-lx106-elf. Whether this will work with standard unpatched > binutils etc I don't know. Hi Simon, and thank's for your response,=20 Effectively, your path seems promising, as the crosstool can be build on gc= c, https://dl.espressif.com/doc/esp-idf/latest/get-started/linux-setup-scra= tch.html=20 I'll giv it a try and look if the ada frontend can be activated Thank's,=20 Patrice