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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: Luke A. Guest Newsgroups: comp.lang.ada Subject: Re: Ada and C++ in the same binary, was: Re: Current status of Ada development for an Android target ? Date: Sun, 19 Jun 2016 16:32:14 +0100 Organization: Aioe.org NNTP Server Message-ID: <421848116.488042939.962509.laguest-archeia.com@nntp.aioe.org> References: <623218455.487799273.877639.laguest-archeia.com@nntp.aioe.org> <7cc0e66f-2a45-4cca-b670-0c3859f4b004@googlegroups.com> NNTP-Posting-Host: sa8AiQCBDKs7tRLBVKdeIg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: NewsTap/5.1.8 (iPhone/iPod Touch) Cancel-Lock: sha1:UfbdjASre+v2dcVUR6FDk6L5Jmg= X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:30812 Date: 2016-06-19T16:32:14+01:00 List-Id: Simon Clubley wrote: >>> The problem is that I don't have any experience combining C++ and Ada >>> code in the same binary; in the past, I've only ever called plain C code >>> from Ada. >> >> What about writing it all in Ada and providing an export interface to C++? > > The C++ idea is for the low level code which could be used elsewhere. > If I write that low level code in Ada then how do I port it to a target > which may not have an Ada compiler available for it ? Obviously, if GCC has a backend target done, getting Ada on it is generally trivial bless it's got weird exception handling, I don't know when they did it but they finally added arm specific eh. In this specific case it would help to know which specific targets you need. Luke