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: 109fba,94a2b19e68586a6 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,9adfbb907494972e X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,9adfbb907494972e X-Google-Attributes: gid1014db,public From: B|rje Norden Subject: Re: Ada to C/C++ translator needed Date: 1996/10/02 Message-ID: <3251C855.41C6@etek.chalmers.se>#1/1 X-Deja-AN: 186932821 sender: news@etek.chalmers.se (USENET News System) references: <32499FA0.4B5E@magic.fr> <52cdn6$iis@dfw.dfw.net> content-type: text/plain; charset=us-ascii organization: Chalmers University of Technology mime-version: 1.0 newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++ x-mailer: Mozilla 3.0 (X11; I; OSF1 V3.2 alpha) Date: 1996-10-02T00:00:00+00:00 List-Id: David Weller wrote: > > In article <32499FA0.4B5E@magic.fr>, > Emmanuel Champommier wrote: > >I'm looking for an Ada to C (or C++) translator. > >Does anyone knows where I could find it ? > > > > Bad news: > 1) None exist I'm not so sure about that; I seem to remember having seen an ADA compiler that generated C code instead of object code (OK, strictly speaking this isn't a translator,but it shows that it's not impossible to develop code in ADA and later convert it to C/C++) > 2) None will likely ever exist (This is for various market > reasons, as well as the fact that translating various Ada > constructs, especially when used in combinations, would be > literally impossible to translate (portably, or even > semi-portably) into C _or_ C++) Apart from ADA's multitasking features,most of the constructs in ADA/C++ is actually quite similar (apart from syntax, that is...); I don't think it would be too difficult to make an ADA to C++ converter if there was a good way of handling the multitasking bits (ADA to C, on the other hand, would be a nightmare to accomplish...;-)). And what do you mean by various market reasons ? Please explain yourself. > > Good news (kind of): > 1) A C to Ada traslator exists > (http://www.inmet.com/~mg/c2ada/c2ada.html) > 2) A C++ to Ada translator is in early prototype stages This would be just as hard as ADA to C++... > > -- > Visit the Ada 95 Booch Components Homepage: www.ocsystems.com/booch > This is not your father's Ada -- lglwww.epfl.ch/Ada