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

  1. Newsgroups: comp.lang.ada
  2. Path: sparky!uunet!think.com!ames!dale.ksc.nasa.gov!rsimonia
  3. From: rsimonia@dale.ksc.nasa.gov (Rick Simonian)
  4. Subject: Calling Ada from a non-Ada language
  5. Message-ID: <1992Nov11.172455.11472@dale.ksc.nasa.gov>
  6. Organization: NASA
  7. Date: Wed, 11 Nov 1992 17:24:55 GMT
  8. Lines: 22
  9.  
  10.  
  11. I'm sure that most will consider this to be gross and unwieldy,
  12. but we need to be able to call Ada routines from non-Ada 
  13. languages.  We first want to solve the problem from C; other
  14. languages need to be addressed later.
  15.  
  16. I would like to know of any experience doing this in a Unix
  17. environment, both where Ada is the main procedure, and where
  18. C (for example) is the main procedure.  I'm aware of the
  19. obvious problems: how to link the executable if Ada is not
  20. the main, how to elaborate the Ada runtime, use of exceptions, 
  21. passing complex structures, how tasking works, and so forth.
  22.  
  23. Ada provides a reasonable means of calling non-Ada routines,
  24. but you hit a brick wall going the other way.  This problem
  25. needs to be addressed in order to better integrate Ada into
  26. a heterogeneous environment.
  27.  
  28. Rick Simonian
  29. Harris Space Systems Corp.
  30. simonian@x102a.ess.harris.com
  31.  
  32.