comp.lang.ada
 help / color / mirror / Atom feed
From: prmitton@comp.brad.ac.uk (PR MITTON)
Subject: Re: C to Ada interfacing
Date: 1996/07/31
Date: 1996-07-31T00:00:00+00:00	[thread overview]
Message-ID: <4tnktk$mcc@columbia.acc.brad.ac.uk> (raw)
In-Reply-To: 4tm4mg$cjp@optional.cts.com


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




  reply	other threads:[~1996-07-31  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-30  0:00 C to Ada interfacing Lee Slaughter
1996-07-31  0:00 ` PR MITTON [this message]
1996-07-31  0:00 ` Paul Hussein
1996-08-01  0:00   ` David Wheeler
1996-08-01  0:00 ` Theodore E. Dennison
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox