home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / ada / 3257 < prev    next >
Encoding:
Text File  |  1992-11-11  |  2.0 KB  |  51 lines

  1. Newsgroups: comp.lang.ada
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!att-out!cbnewsl!willett
  3. From: willett@cbnewsl.cb.att.com (david.c.willett)
  4. Subject: Re: Calling Ada from a non-Ada language
  5. Organization: AT&T Bell Laboratories
  6. Date: Wed, 11 Nov 1992 22:40:56 GMT
  7. Message-ID: <1992Nov11.224056.15821@cbnewsl.cb.att.com>
  8. References: <1992Nov11.172455.11472@dale.ksc.nasa.gov>
  9. Lines: 40
  10.  
  11. From article <1992Nov11.172455.11472@dale.ksc.nasa.gov>, by rsimonia@dale.ksc.nasa.gov (Rick Simonian):
  12. > I'm sure that most will consider this to be gross and unwieldy,
  13. > but we need to be able to call Ada routines from non-Ada 
  14. > languages.  We first want to solve the problem from C; other
  15. > languages need to be addressed later.
  16.  
  17. dcw-> You got that right, it's pretty gross and unwieldy, but what precisely
  18. dcw-> do you mean by "call Ada routines from non-Ada languages"?  Do you 
  19. dcw-> intend for a C function (possibly main) to call an Ada procedure?
  20. dcw-> Would running the Ada units as a "detached" (in VMS-speak) or
  21. dcw-> "child" process solve your problem?  Why do you need to do this
  22. dcw-> anyway?
  23.  
  24. dcw->    (John Bentley, in "Programming Pearls" says to always ask that
  25. dcw->     last question).
  26. dcw->
  27. >
  28. > I would like to know of any experience doing this in a Unix
  29. > environment, both where Ada is the main procedure, and where
  30. > C (for example) is the main procedure.  I'm aware of the
  31. > obvious problems: how to link the executable if Ada is not
  32. > the main, how to elaborate the Ada runtime, use of exceptions, 
  33. > passing complex structures, how tasking works, and so forth.
  34. > Ada provides a reasonable means of calling non-Ada routines,
  35. > but you hit a brick wall going the other way.  This problem
  36. > needs to be addressed in order to better integrate Ada into
  37. > a heterogeneous environment.
  38. > Rick Simonian
  39. > Harris Space Systems Corp.
  40. > simonian@x102a.ess.harris.com
  41. >
  42.  
  43. -- 
  44. Dave Willett          AT&T Federal Systems Advanced Technologies
  45. attmail!dwillett      (AT&T FSAT)
  46. -- Some girls don't like boys like me.... Oh but some girls do!
  47.     -- Sawyer Brown
  48.