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!.POSTED!not-for-mail From: Simon Clubley Newsgroups: comp.lang.ada Subject: Ada and C++ in the same binary, was: Re: Current status of Ada development for an Android target ? Date: Sat, 18 Jun 2016 15:44:36 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <623218455.487799273.877639.laguest-archeia.com@nntp.aioe.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Sat, 18 Jun 2016 15:44:36 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="9e5ade7660e20a6bb632eed5755301ad"; logging-data="23558"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Wkpf/YMlDY3mFXL3gfpftSVSVSFW0S84=" User-Agent: slrn/0.9.9p1 (Linux) Cancel-Lock: sha1:Z7iYXcQKUJkgoC1NfqJmd6HVjGc= Xref: news.eternal-september.org comp.lang.ada:30782 Date: 2016-06-18T15:44:36+00:00 List-Id: On 2016-06-16, Luke A Guest wrote: > Simon Clubley wrote: >> On 2016-06-16, Lucretia wrote: >>> Just to update, the FSF GCC 4.9.2, 5.4.0 and 6.1.0 do not compile any of >>> the 64 bit targets, they all fail. They are missing patches from Google >>> and I don't think they will ever get passed upstream. >> >> Thanks for the update Luke. >> >> Simon. >> >> PS: And thanks for looking. >> > > A quick way around this is I could build it based on the Google source > for4.9 and leave extracting the patches to spot to FSF for later. That > would work. > Thanks Luke, but please don't go to any special effort on my behalf. 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. 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. 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. Does anyone know of any issues combining C++ and Ada code in the same binary when using gcc and binutils ? Are there any conflicts with exceptions for example ? The primary use of such binaries would be on a Linux x86 (and maybe ARM) platform. Thanks, Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world