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: 1014db,c0f035b936128b6c X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,c0f035b936128b6c X-Google-Attributes: gid103376,public From: xanadu@ripco.com (Jennifer E. Lee) Subject: Re: Ada95 to ANSI_C converter Date: 1997/04/01 Message-ID: <5hrh21$2k$1@gail.ripco.com>#1/1 X-Deja-AN: 229918176 References: <5hbrah$ctt$1@gail.ripco.com> <01bc3a3d$7734db20$63f482c1@xhv46.dial.pipex.com> <5henq6$b3m$1@gail.ripco.com> <333B2068.21CC@hiwaay.net> Organization: Ripco Internet BBS, Chicago Newsgroups: comp.lang.ada,comp.lang.c Date: 1997-04-01T00:00:00+00:00 List-Id: Philip Johnson wrote: >Jennifer E. Lee wrote: >> Our system is an HP Broadband System which only knows C and TTCN. >> Since our project is about the side of 10K to 13K LOC. >> We believe that using an OO language like Ada95 would be a plus >> for us in term of debugging and integration at the testing phase. >> If we want to use C, at least we will look into how to code >> C like an Object-based language like Ada with "PACKAGE" usage. >> However, I really don't know how to do it without using CLASS >> and INHERENT definitions. > >Jennifer, > >Why not write the application in Ada95 and use the Language interface >to "talk" to the HP Broadband system. I am using a similar approach >to a data acquisition system now. I wrote a simple interface package >to converse with the DAS driver dlls and it seems to be working fine. >This was a proof of concept activity that convinced the customer that >Ada95 was a good choice. I am now into the main project. > > Phil, Thank you, but how? 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? The HPBS is a validation device for us to emulate our clients' SDH/SONNET/ATM networks. My idea is, Ada95_to_ANSIC BEGIN IF case I := Ada to C conversion not gonna to work; THEN we have recode our client's OO Ada code to C; ELSE case II := there is an Ada to C convertor; THEN we let the converter to fix the conversion problem; END OK, another question. How do you use C to code like an OO Ada program? Thank you in advance. -- Love, Jennifer Ellen Lee (xanadu@ripco.com) ~@>*---~@>*---~@>*---~@>*---~@>*---~@>*---~@>*---~@>*---~@>*---~@>*---~@>*---~ I love life, I need food, but I'd rather die without democracy. "Ren Min Er Nu:, Shi De Ren Min." -- Wang Dan 1989