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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9d929352a358ccab X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!cox.net!news-xfer.cox.net!p01!dukeread01.POSTED!53ab2750!not-for-mail From: David Emery User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada to C++ translator References: <1138132539.577082.206380@g43g2000cwa.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Tue, 24 Jan 2006 18:26:14 -0500 NNTP-Posting-Host: 24.249.249.75 X-Complaints-To: abuse@cox.net X-Trace: dukeread01 1138145182 24.249.249.75 (Tue, 24 Jan 2006 18:26:22 EST) NNTP-Posting-Date: Tue, 24 Jan 2006 18:26:22 EST Organization: Cox Communications Xref: g2news1.google.com comp.lang.ada:2617 Date: 2006-01-24T18:26:14-05:00 List-Id: Jeffrey R. Carter wrote: > zangnew@gmail.com wrote: > >> I am looking for an Ada to C++ translator. The converter will only be >> used as an intermediate step and not used on sections of code we will >> be re-architecting to make use of C++ functionality. > > Such a beast is impossible, since there is no translation for tasks and > protected objects. > That's not true. There's no 1-1 translation, bu a POSIX-based runtime certainly can show how to translate Ada tasking to a sequence of C/POSIX primitives (Mutexes, Semaphores, etc). It's certainly non-trivial, but it can be done. A good recent paper on sequential Ada is: Audsen, Howard & Nyberg, "Using ASIS to Generate C++ Bindings", Proc SIGAda 2005 For tasking constructs, search for papers by Ted Baker and/or Ted Giering. If you're a SIGAda member, it's in the proceedings you got last month :-) dave