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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,54a7a73cc7f9baec X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: C binding to Ada (not Ada to C) Date: 1999/05/30 Message-ID: <7iriq0$rit$1@nnrp1.deja.com>#1/1 X-Deja-AN: 483741776 References: <7ini7i$otg1@darius.pce.net> <7ir26i$9vj$1@lure.pipex.net> X-Http-Proxy: 1.0 x32.deja.com:80 (Squid/1.1.22) for client 166.72.71.100 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Sun May 30 14:43:12 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-05-30T00:00:00+00:00 List-Id: In article <7ir26i$9vj$1@lure.pipex.net>, "Paul Hussein" wrote: > It is a compiler dependant thing, but most support it. It is not a compiler dependent thing, it is a required part of the language (if we are talking Ada = Ada 95) > The tricky part is in elaborating the Ada. Nothing tricky here, the method is portable and documented clearly in the RM as a requirement for all implementations. > Consult uour compilers docs. You can write your sources (both C and Ada) from the RM requirements, but you will probably need to consult your compiler documentation to see exactly how the binding and linking is done, since this is, as always compiler and OS dependent. Paul's answers here would have been appropriate five years ago for Ada 83, but are not appropriate for Ada 95 (of course if you are still stuck using Ada 83, then the five years old comments still apply to you :-) Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.