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,7140daf195c59fcf,start X-Google-Attributes: gid103376,public From: Tim Armentrout Subject: Ada to C interface Date: 1997/01/23 Message-ID: <32E79A20@snoopy>#1/1 X-Deja-AN: 211873177 sender: Ada programming language comments: Gated by NETNEWS@AUVM.AMERICAN.EDU encoding: 12 TEXT newsgroups: comp.lang.ada x-mailer: Microsoft Mail V3.0 Date: 1997-01-23T00:00:00+00:00 List-Id: I'm trying to interface a C program to an Ada program, and have run into difficulty. The problem is this: I have an Ada record defined. I have a C procedure that needs to operate on this record. However, the Ada program must operate on it also. The C procedure involves some extensive low level bit manipulation that runs faster than equivalent Ada code. I would like to take advantage of the increased speed by calling the C procedure directly from my Ada program. However, how do I export the Ada record structure so that my C compiler can resolve references to it, without doing a pragma in-line ? Please help... -- Tim (tarmen@dahlgren.tsc.com)