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: Craig Franck Subject: Re: Ada95 to ANSI_C converter Date: 1997/03/28 Message-ID: <5hfagl$frr@mtinsc05.worldnet.att.net>#1/1 X-Deja-AN: 228887851 References: <5hbrah$ctt$1@gail.ripco.com> <01bc3a3d$7734db20$63f482c1@xhv46.dial.pipex.com> <5heoel$bc0$1@gail.ripco.com> Organization: AT&T WorldNet Services Newsgroups: comp.lang.ada,comp.lang.c Date: 1997-03-28T00:00:00+00:00 List-Id: xanadu@ripco.com (Jennifer E. Lee) wrote: > >In article , Robert Dewar wrote: >>Nick says >> >><>moderately pragmatic approach is taken (IMHO!).>> >> >>Only if you restrict the Ada 95 to a very small subset. There are many >>features in Ada 95 that will cause significant trouble in converting to >>C (e.g. nested procedures, dynamic aggregates, dynamic arrays, particularly >>those in records, variant records, finalization, exceptions, packed arrays, >>etc. etc.) >> > >So it is impossible for such thing like Ada to C converter being made. >Is this what you are suggesting? It may be impractical. Is there a lot of code to convert, and will you use this converter for other projects? The simplest way to convert would be to have one group of Ada programmers convert the Ada program to a PDL description of the code, along with constraints and specifications. Give that to a C group and let them code it. Run both programs on the same test data and see if they perfrom to specification. It would difficult to automate this process; writing the program would take more time than any one (or several) conversions by hand. Of course, maybe you will luck out and a product to do this is already available. Good Luck! -- Craig clfranck@worldnet.att.net Manchester, NH A fanatic is one who can't change his mind and won't change the subject -- Winston Churchill