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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,47327673b9e29af0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-18 16:42:07 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!xfer02.netnews.com!news.tufts.edu!uunet!dca.uu.net!ash.uu.net!world!news From: Robert A Duff Subject: Re: Ada -> C or C++ translator Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Tue, 18 Jun 2002 23:41:43 GMT References: <3D0DD57A.5000402@yahoo.com> NNTP-Posting-Host: shell01.theworld.com Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:26322 Date: 2002-06-18T23:41:43+00:00 List-Id: David Rasmussen writes: > I know that some Ada features don't have portable counterparts in C or > C++ (like concurrency), but does some sort of translator exist from Ada > to C or C++? It could use C or C++ as an Intermediate Representation > language similar to what the Comeau C/C++ compiler does. This way, one > could do the development with Ada and have all the advantages of Ada, > and end up with hopefully more correct code, and then for the release, > one could translate to C or C++ and use some of the very effecient > compilers for these languages. I realize that the support of some parts > of Ada's runtime system (like exceptions) wont be intact, but for > projects where this isn't important, such a translator could still be > useful. > > Does such a translator exist? > > /David The AverCom (was AverStar, was Intermetrics) AdaMagic compiler can generate C code. (It also generates machine code on various targets.) It supports the full language, including exceptions, tasking, etc (but not the optional annexes). (It's not *easy* to translate Ada's exceptions into C, but it is possible.) E-mail to Tucker Taft (stt@avercom.net) if you are interested. - Bob