home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!cs.utexas.edu!uwm.edu!lll-winken!taurus!grus!erickson
- From: erickson@taurus.cs.nps.navy.mil (David Erickson)
- Newsgroups: comp.lang.ada
- Subject: Mixing Ada and C modules
- Message-ID: <6130@grus.cs.nps.navy.mil>
- Date: 3 Sep 92 00:34:06 GMT
- Reply-To: erickson@cs.nps.navy.mil (David Erickson)
- Organization: Naval Postgraduate School, Monterey CA
- Lines: 22
-
- I wish to write a module in Ada which dovetails into an existing program
- written in C. The compiler I am using (Meridian, Sun 4) supports pragma
- interface(C,...), and it is capable of producing intermediate C code.
-
- If anyone has done something similar, and has some suggestions about how
- to proceed, and what problems I will run into, I would appreciate hearing
- from you.
-
-
- More details: the set of C modules is an operating system simulator and
- project generator. I plan on using it for my introductory operating
- systems course. Students will have to write a module in Ada, which will
- be linked to the remaining modules to form a complete operating system,
- then the simulator will test the result. I have a complete set of
- specifications for the C functions that should be in each module, and
- the intermediate code will have to conform.
-
- -Dave Erickson
-
- Computer Science Dept.
- Naval Postgraduate School
- Monterey, CA
-