home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / ada / 2521 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  1.3 KB

  1. Path: sparky!uunet!usc!cs.utexas.edu!uwm.edu!lll-winken!taurus!grus!erickson
  2. From: erickson@taurus.cs.nps.navy.mil (David Erickson)
  3. Newsgroups: comp.lang.ada
  4. Subject: Mixing Ada and C modules
  5. Message-ID: <6130@grus.cs.nps.navy.mil>
  6. Date: 3 Sep 92 00:34:06 GMT
  7. Reply-To: erickson@cs.nps.navy.mil (David Erickson)
  8. Organization: Naval Postgraduate School, Monterey CA
  9. Lines: 22
  10.  
  11. I wish to write a module in Ada which dovetails into an existing program
  12. written in C.  The compiler I am using (Meridian, Sun 4) supports pragma 
  13. interface(C,...), and it is capable of producing intermediate C code.
  14.  
  15. If anyone has done something similar, and has some suggestions about how
  16. to proceed, and what problems I will run into, I would appreciate hearing
  17. from you.
  18.  
  19.  
  20. More details:  the set of C modules is an operating system simulator and
  21. project generator.  I plan on using it for my introductory operating
  22. systems course.  Students will have to write a module in Ada, which will
  23. be linked to the remaining modules to form a complete operating system,
  24. then the simulator will test the result.  I have a complete set of
  25. specifications for the C functions that should be in each module, and
  26. the intermediate code will have to conform.
  27.  
  28. -Dave Erickson
  29.  
  30. Computer Science Dept.
  31. Naval Postgraduate School
  32. Monterey, CA
  33.