comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Using ADA procedures from C
Date: 1997/05/13
Date: 1997-05-13T00:00:00+00:00	[thread overview]
Message-ID: <dewar.863496743@merv> (raw)
In-Reply-To: 5l78vs$nn0$1@luna.ffi.no


Rune says

<<In the gnat reference manual I have read that it is possible to
call ADA procedures from a C procedure. There are of course no
examples.>>

First, I would like to reassure people that the GNAT reference manual (note
caps!) does not mention calling ADA procedures, only Ada procedures :-)

There are no examples because this is nothing special to do with GNAT. This
is an absolutely standard RM required feature, so any Ada text will tell
you how to do this using pragma Export. Don't expect the GNAT reference
manual to be an Ada tutorial, that is not its function at all. It is not
even a complete reference manual, in that basically the only detail is
about things not covered by the standard RM.

Now if your question is about how to compile and run such programs, then
of course you look in the users guide, not the reference manual (the
latter is only about language features and their syntax and semantics).

In the users guide, you may find the section 

   Mixed Language Programming                        

helpful, it is an entire node, so it's hard to miss!





  parent reply	other threads:[~1997-05-13  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-12  0:00 Using ADA procedures from C Rune Wemberg
1997-05-12  0:00 ` Michael Paus
1997-05-13  0:00 ` Robert Dewar [this message]
1997-05-14  0:00   ` Rune Wemberg
1997-05-14  0:00     ` Robert Dewar
1997-05-15  0:00     ` root
replies disabled

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