comp.lang.ada
 help / color / mirror / Atom feed
* Interfacing From C in Ada 83
@ 1996-11-21  0:00 ender
  1996-11-24  0:00 ` Robert Dewar
  0 siblings, 1 reply; 3+ messages in thread
From: ender @ 1996-11-21  0:00 UTC (permalink / raw)



I'm trying to call an Ada procedure from a C program, and was wondering 
how this was done before the Export pragma was there?  I can't get the 
linker to find the Ada routine.  I'm currently using Alsys on x86 UNIX.

Any suggestions would be appreciated.

--Chris





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

* Re: Interfacing From C in Ada 83
  1996-11-21  0:00 Interfacing From C in Ada 83 ender
@ 1996-11-24  0:00 ` Robert Dewar
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Dewar @ 1996-11-24  0:00 UTC (permalink / raw)



Chris said

"I'm trying to call an Ada procedure from a C program, and was wondering
how this was done before the Export pragma was there?  I can't get the
linker to find the Ada routine.  I'm currently using Alsys on x86 UNIX."



The answer is "with great difficulty!"

You are unlikely to succeed flailing around. You need to talk to your vendor,
and see if they provide some kludge for achieving this goal (perhaps using
the 'Address attribute on the subprogram), but it is not something that
there is any standard way of doing in Ada 83.





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

* Re: Interfacing From C in Ada 83
@ 1996-11-27  0:00 W. Wesley Groleau (Wes)
  0 siblings, 0 replies; 3+ messages in thread
From: W. Wesley Groleau (Wes) @ 1996-11-27  0:00 UTC (permalink / raw)



Chris Ender said he wanted to call Alsys x86 from C....

   Assuming your compiler is similar to other Alsys compilers,
   check your documentation for pragma Call_In.

---------------------------------------------------------------------------
W. Wesley Groleau (Wes)                                Office: 219-429-4923
Hughes Defense Communications (MS 10-40)                 Home: 219-471-7206
Fort Wayne,  IN   46808                  (Unix): wwgrol@pseserv3.fw.hac.com
---------------------------------------------------------------------------




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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-11-21  0:00 Interfacing From C in Ada 83 ender
1996-11-24  0:00 ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1996-11-27  0:00 W. Wesley Groleau (Wes)

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