From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_20,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8bfa37a97c46a2a5,start X-Google-Attributes: gid103376,public From: Fred Roeber Subject: Keeping Ada and C data structures in sync Date: 1999/05/21 Message-ID: <37459F82.BB2DB17@bbn.com>#1/1 X-Deja-AN: 480604680 Distribution: world Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: burlma1-snr2 927309841 192.1.10.47 (Fri, 21 May 1999 18:04:01 GMT) Organization: GTE/BBN MIME-Version: 1.0 NNTP-Posting-Date: Fri, 21 May 1999 18:04:01 GMT Newsgroups: comp.lang.ada Date: 1999-05-21T00:00:00+00:00 List-Id: 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 |