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: Mon, 20 Jun 2016 15:28:56 +0100 Organization: Aioe.org NNTP Server Message-ID: <1814677820.488125671.000598.laguest-archeia.com@nntp.aioe.org> References: <623218455.487799273.877639.laguest-archeia.com@nntp.aioe.org> <7cc0e66f-2a45-4cca-b670-0c3859f4b004@googlegroups.com> <87d1nc83g0.fsf@adaheads.sparre-andersen.dk> 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:4by6Lkz+v6FWVgY1FuArm7Gl6ZI= X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:30838 Date: 2016-06-20T15:28:56+01:00 List-Id: Jacob Sparre Andersen wrote: > Simon Clubley wrote: > >> 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? > > The expensive solution is to use AdaMagic, which compiles to C > (including run-time support). > > But writing in C++ is expensive as well. > > The difference is just when you pay the price. With AdaMagic, you only > pay once you need to. That's not really an option though is it. There are numerous c and c++ compilers for various targets. Not true for Ada.