comp.lang.ada
 help / color / mirror / Atom feed
* Calling an Ada subprogram from a C function
@ 1991-04-18 23:25 Simon Coates
  1991-04-22 18:22 ` John Stafford
  0 siblings, 1 reply; 2+ messages in thread
From: Simon Coates @ 1991-04-18 23:25 UTC (permalink / raw)


Does anyone out there know of a way to permit a C function to call an Ada
subprogram using the Alsys compiler? The C function would have previously 
been invoked by another Ada subprogram by way of the INTERFACE pragma. (No
doubt this is all hidden in the manuals somewhere, but I've yet to find it)

Many thanks for any assistance.

Simon Coates (coates@mprgate.mpr.ca)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Calling an Ada subprogram from a C function
  1991-04-18 23:25 Calling an Ada subprogram from a C function Simon Coates
@ 1991-04-22 18:22 ` John Stafford
  0 siblings, 0 replies; 2+ messages in thread
From: John Stafford @ 1991-04-22 18:22 UTC (permalink / raw)


As far as I know it isn't hidden away in the manual anywhere.  In
general, I believe, non-Ada calling Ada is not supported by Alsys Ada.
Having said that, I believe, but am not sure, that Alsys may have an
"application note" on how you can achieve non-Ada to Ada calls in
limited contexts.  Additionally, HP/Ada on the 9000/[34]00 series, which
is produced under license from Alsys, does support pragma EXPORT on
subprograms, making them directly (and indirectly) callable from non-Ada
code (IN parameters only, exceptions must not propagate to the non-Ada
caller, and several other restrictions apply).

--
John Stafford -- Hewlett Packard California Language Lab
Internet: jws@cup.hp.com           UUCP: hplabs!hpda!jws

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1991-04-22 18:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1991-04-18 23:25 Calling an Ada subprogram from a C function Simon Coates
1991-04-22 18:22 ` John Stafford

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