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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,976a050e0f89277c X-Google-Attributes: gid103376,public From: gwinn@ma.ultranet.com (Joe Gwinn) Subject: Re: Urgent question: malloc and ada... Date: 1998/04/12 Message-ID: #1/1 X-Deja-AN: 343433751 References: <352A79C2.15FB7483@nathan.gmd.de> X-Ultra-Time: 12 Apr 1998 23:27:02 GMT X-Complaints-To: abuse@ultra.net Organization: Gwinn Instruments Newsgroups: comp.lang.ada Date: 1998-04-12T00:00:00+00:00 List-Id: In article , dewar@merv.cs.nyu.edu (Robert Dewar) wrote: > Joe says > > (of interfacing C and Ada) > > < >> > > It would be interesting to know in more detail what "tricky" things you > have run in to. Most of the trouble has been in passing data structures (records in Ada, structs in C/C++) from one world to the other. Pragma interface C has worked mostly as expected, but getting the data across the divide undamaged has not. This was where the rep spec on an enumeration type problem first surfaced. These data structures are most often used for message handling, which is how the three worlds of our system talk to each other. One world is Ada95, and the other two are different flavors of C/C++ in different boxes under different operating systems. One kind of box and operating system houses Ada95 and one kind of C, and the other kind of box and operating system houses the other kind of C/C++. I don't know how much of the details of what has caused recent trouble is universal, but I do know that passing data between languages and compilers has always been a rich source of trouble, for all languages and compilers, for my entire career, so I don't expect that it will ever change. Joe Gwinn