comp.lang.ada
 help / color / mirror / Atom feed
* C Calling GNAT
@ 1996-07-02  0:00 Nigel J. Tracey (4Y0)
  1996-07-03  0:00 ` Nigel J. Tracey
  0 siblings, 1 reply; 3+ messages in thread
From: Nigel J. Tracey (4Y0) @ 1996-07-02  0:00 UTC (permalink / raw)





--
Nigel J. Tracey (4th Year) MEng Computer System and Software Engineering.
Department of Computer Science,         
University of York,
York, England.                           e-mail: njt-a@minster.york.ac.uk




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

* Re: C Calling GNAT
  1996-07-03  0:00 ` Nigel J. Tracey
@ 1996-07-03  0:00   ` Robert Dewar
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Dewar @ 1996-07-03  0:00 UTC (permalink / raw)



Nigel asks

"Can anybody provide me with an example of how to
get a C function to call an Ada routine. All compiled
with gcc and GNAT? I assume that this is possible.
I know it is possible for Ada to call C routines,
but I need to have a C routine call Ada. Also how
would you go about passing parameters between the
two such as enumerated types (I assume integers, etc
are fairly straight-forward)"

The reference manual provides a basic description of how parameters are
passed, and how to use pragma Export to make an Ada routine that can be
called from C.

For information on how to setup GNAT with a non-Ada main program, see
the specific section in gnatinfo.txt on this topic.





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

* C Calling GNAT
  1996-07-02  0:00 C Calling GNAT Nigel J. Tracey (4Y0)
@ 1996-07-03  0:00 ` Nigel J. Tracey
  1996-07-03  0:00   ` Robert Dewar
  0 siblings, 1 reply; 3+ messages in thread
From: Nigel J. Tracey @ 1996-07-03  0:00 UTC (permalink / raw)




Can anybody provide me with an example of how to
get a C function to call an Ada routine. All compiled
with gcc and GNAT? I assume that this is possible.
I know it is possible for Ada to call C routines,
but I need to have a C routine call Ada. Also how
would you go about passing parameters between the
two such as enumerated types (I assume integers, etc
are fairly straight-forward)

Any help would be much appreciated.

	Thanks

		Nigel

(Please also e-mail replies to njt@minster.york.ac.uk)






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

end of thread, other threads:[~1996-07-03  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-07-02  0:00 C Calling GNAT Nigel J. Tracey (4Y0)
1996-07-03  0:00 ` Nigel J. Tracey
1996-07-03  0:00   ` Robert Dewar

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