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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c0f035b936128b6c X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,c0f035b936128b6c X-Google-Attributes: gid1014db,public From: "Philip E. Johnson" Subject: Re: Ada95 to ANSI_C converter Date: 1997/04/02 Message-ID: <33429159.5D98@hiwaay.net>#1/1 X-Deja-AN: 230995352 References: <5hbrah$ctt$1@gail.ripco.com> <01bc3a3d$7734db20$63f482c1@xhv46.dial.pipex.com> <5henq6$b3m$1@gail.ripco.com> <333B2068.21CC@hiwaay.net> <5hrh21$2k$1@gail.ripco.com> Reply-To: philipj@hiwaay.net Newsgroups: comp.lang.ada,comp.lang.c Date: 1997-04-02T00:00:00+00:00 List-Id: Jennifer E. Lee wrote: [deleted stuff] > The HP Broadband Systems (HPBS) only recognizes ANSI C and TTCN > (Tree & Tabular Combined Notation) object codes. > Our clients want us to integrate their Ada95 OO code with our C codes > which is almost impossible IMHO because C is not an OO language. > How do we convert Ada's _package_, TEXT_IO, .... to HP's C function? [deleted stuff] > OK, another question. > How do you use C to code like an OO Ada program? for the real time DAS I mentioned: All of my application code is written in Ada95. I use the language pragma to interface my Ada95 code to system level C/C++ dlls. The system level dlls provide the communication pipeline to the system hardware [I am running on WindowsNT and cannot touch hardware direct]. If your C code is high level application code [not system drivers] then it is a different problem. If the customer's Ada95 OO code [caveat: It can be written in Ada95 and not be OO] resolves into a lower level [system level] message passing to the system then it may require only an interface between Ada and C. If the C code is high level application code then the interface will probably be more complex. This would require a closer examination of both the Ada95 and C codes Phil ---- ____________________________________________________________________ | | | Ceilidh [Kay Lee] gaelic: A gathering of friends | | | |Philip Johnson Telco: (205) 830-9663 | |Sr. Software Engineer email:philipj@HIWAAY.net | |Ceilidh Systems Inc. | |Madison, AL | --------------------------------------------------------------------