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=0.6 required=5.0 tests=BAYES_40,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a4ce2c0817cfc70b X-Google-Attributes: gid103376,public From: prmitton@comp.brad.ac.uk (PR MITTON) Subject: Re: C to Ada interfacing Date: 1996/07/31 Message-ID: <4tnktk$mcc@columbia.acc.brad.ac.uk>#1/1 X-Deja-AN: 171251659 references: <4tm4mg$cjp@optional.cts.com> organization: University of Bradford newsgroups: comp.lang.ada Date: 1996-07-31T00:00:00+00:00 List-Id: Lee Slaughter (lees@cts.com) wrote: : Hi, : I'm not an Ada programmer but need to interface with Ada : routines from C (on a VxWorks platform). : I have searched here, FAQ and the Tartanworks Ada docs : and found a little, but I could use more. : I'd appreciate it, especially sample code. : In my probably naive view i'd make a call to someAdaFn( arg ) : and my Ada-programmer peer would define this function in some : .ada or whatever source file who's : object file would be linked in with the C .o stuff, and of : course have to take special care to be sure data types align, : are in the right order with right number of gaps and all. : Is that sort of sketchily it? : Thanks... : lee : --- : Lee Slaughter - network management development: submarine stuff : Navy R & D, Point Loma, San Diego, CA lees@nosc.mil : "Giving credence to his ramblings indicates a cognitive disorder..." : - Lee's psychiatrist, circa 1952 If you have an Ada 95 compiler then you can make use of the facilities described in Annex B.2 of the Ada LRM which is concerned with interfacing to other languages. The text is available on the web if you haven't got a printed version. (http://sw-eng.falls_church.va.us/AdaIC/standards/Welcome.html#95standards) Hope this helps. Pete -- Pete Mitton || If I brew good beer Computing Department || I'll drink the same University of Bradford || - from The Gypsy Davy. England || sung by Lena Bourne Fish