comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP>
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 15:00:08 -0000 (UTC)
Date: 2016-06-19T15:00:08+00:00	[thread overview]
Message-ID: <nk6c1o$6us$3@dont-email.me> (raw)
In-Reply-To: 7cc0e66f-2a45-4cca-b670-0c3859f4b004@googlegroups.com

On 2016-06-18, Shark8 <onewingedshark@gmail.com> wrote:
> On Saturday, June 18, 2016 at 9:44:37 AM UTC-6, Simon Clubley wrote:
>> 
>> Having thought about the situation, I'm getting nervous once again about
>> the "special" :-( situation around Ada compilers given that I'm not
>> sure where some of this code might be used in the future.
>
> Well, hopefully Byron will help push the available options up a bit.
>  
>> My current thinking (as of this morning :-)) is to maybe write the low
>> level stuff in C++ (which is the code more likely to be used elsewhere)
>> and to do the high level stuff in Ada.
>
> I think I understand what you're saying... but wouldn't that invite
> errors in the lower levels? I rather like the focus that Ada puts on
> correctness. (And SPARK is pretty nifty, too.)
>

I agree that's a concern but I'm writing some code with the possibility
in mind that some of it's going to be used in other projects on various
unknown targets in the future. That means I have to make language choices
based on what's likely to be available for those targets.

>> 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 ?

Simon.

-- 
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Microsoft: Bringing you 1980s technology to a 21st century world

  reply	other threads:[~2016-06-19 15:00 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-11 15:51 Current status of Ada development for an Android target ? Simon Clubley
2016-06-12  7:28 ` Luke A. Guest
2016-06-12  8:25 ` Luke A. Guest
2016-06-12  8:27 ` Luke A. Guest
2016-06-12 23:36   ` Simon Clubley
2016-06-13  4:24     ` Shark8
2016-06-13 13:49     ` Lucretia
2016-06-13 14:34       ` Lucretia
2016-06-14 13:22 ` jrmarino
2016-06-14 18:39   ` Simon Clubley
2016-06-15  9:41     ` jrmarino
2016-06-15 13:11       ` Simon Clubley
2016-06-15 12:12     ` Luke A. Guest
2016-06-15 13:02       ` Simon Clubley
2016-06-15 13:13         ` Lucretia
2016-06-16 19:20 ` Lucretia
2016-06-16 19:29   ` Simon Clubley
2016-06-16 19:49     ` Luke A. Guest
2016-06-18 15:44       ` Ada and C++ in the same binary, was: " Simon Clubley
2016-06-18 16:38         ` Simon Clubley
2016-06-18 18:21         ` Luke A. Guest
2016-06-19 14:50           ` Simon Clubley
2016-06-18 18:24         ` Shark8
2016-06-19 15:00           ` Simon Clubley [this message]
2016-06-19 15:32             ` Luke A. Guest
2016-06-19 17:52               ` Simon Clubley
2016-06-19 18:40                 ` Luke A. Guest
2016-06-19 19:16                   ` Simon Clubley
2016-06-19 20:32                     ` Luke A. Guest
2016-06-20 12:11             ` Jacob Sparre Andersen
2016-06-20 14:28               ` 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