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 10.157.61.102 with SMTP id a93mr6015498otc.147.1479761567655; Mon, 21 Nov 2016 12:52:47 -0800 (PST) X-Received: by 10.157.8.134 with SMTP id 6mr966211otf.17.1479761567622; Mon, 21 Nov 2016 12:52:47 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!w132no1458116ita.0!news-out.google.com!k2ni3194itb.0!nntp.google.com!w132no1458106ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 21 Nov 2016 12:52:47 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=86.89.184.96; posting-account=wg42bwoAAAAkdsXrFOhcNSrdlVzaFnf1 NNTP-Posting-Host: 86.89.184.96 References: <1936435310.501421359.068647.laguest-archeia.com@nntp.aioe.org> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2c7aa8f3-980f-4471-8338-62d370f5957c@googlegroups.com> Subject: Re: Ada and C From: jan van katwijk Injection-Date: Mon, 21 Nov 2016 20:52:47 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:32402 Date: 2016-11-21T12:52:47-08:00 List-Id: Op maandag 21 november 2016 16:06:43 UTC+1 schreef G.B.: > On 21.11.16 12:44, Mr. Man-wai Chang wrote: > > On 21/11/2016 7:43 PM, Luke A. Guest wrote: > >> Mr. Man-wai Chang wrote: > >>> > >>> Does Adata... sorry... Ada interact with C? > >>> > >> > >> If you want it to > > > > Talking about physical reality *examples*! >=20 > One example is an Ada program that calls POSIX routines > as implemented for GNU/Linux, another is one that calls > Windows=E2=84=A2 GUI's functions (Win32). > That, as well as the fact that the Ada standard specifies how > Ada and C should interact (in LRM B.3, Interfaces.C), should > answer the question not just by particular example but for > every compiler on any supported system. You could take a look at https://github.com/JvanKatwijk/ada-dab which contains source for a DAB decoder and is using a number of C librarie= s a.o it interfaces to C libraries for sdr input devices and soundcard output= using a number of callbacks as well. j