comp.lang.ada
 help / color / mirror / Atom feed
* Keeping Ada and C data structures in sync
@ 1999-05-21  0:00 Fred Roeber
  1999-05-21  0:00 ` dennison
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Fred Roeber @ 1999-05-21  0:00 UTC (permalink / raw)


I have a question that has probably been asked before (even though I
haven't been able to find any references to). The project I am on has
some code written in C and some in Ada. The two parts of the program
have to communicate by passing data structures. Does anyone know of a
good way to keep data structure declarations consistent between C and
Ada?

We have wondered about several solutions:
- using a translator to derive C include files from Ada
- using some sort of IDL with the appropriate compilers to derive
  C and Ada versions of the structure definitions from the common
  input language

Has anybody had experience/success with either of these approaches. Does
anyone know of some other better method? Thanks for any advice.  Fred
-- 
   |      Fred J Roeber,  BBN Systems & Technologies      |
   |    4 John Clarke Road   Middletown, RI  02842-5202   |
   |          froeber@bbn.com     401-848-3548            |




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

end of thread, other threads:[~1999-05-24  0:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-21  0:00 Keeping Ada and C data structures in sync Fred Roeber
1999-05-21  0:00 ` dennison
1999-05-21  0:00 ` Larry Kilgallen
1999-05-22  0:00 ` Robert Dewar
1999-05-24  0:00   ` Samuel Mize
1999-05-23  0:00 ` Aidan Skinner
1999-05-23  0:00   ` David Botton
1999-05-23  0:00     ` Bob
1999-05-24  0:00       ` Chris
1999-05-24  0:00         ` David Botton

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