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-17 05:47:11 PST From: "Martin Dowie" Newsgroups: comp.lang.ada References: <3D0DD57A.5000402@yahoo.com> Subject: Re: Ada -> C or C++ translator Date: Mon, 17 Jun 2002 13:51:24 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: sg2c11210.sd.edinbr.gmav.gecm.com Message-ID: <3d0dda3d$1@pull.gecm.com> X-Trace: pull.gecm.com 1024318013 sg2c11210.sd.edinbr.gmav.gecm.com (17 Jun 2002 13:46:53 +0100) Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!btnet-peer0!btnet-feed5!btnet!newreader.ukcore.bt.net!pull.gecm.com!not-for-mail Xref: archiver1.google.com comp.lang.ada:26142 Date: 2002-06-17T13:51:24+01:00 List-Id: "David Rasmussen" wrote in message news:3D0DD57A.5000402@yahoo.com... > 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. Why do you suspect that an Ada compiler won't give you decent performance? The performance of today's Ada95 compilers seem pretty much on a par with the C/C++ compilers I'm using. There is an argument that they should be able to produce more efficient code too but other than the 'famous' Tartan compiler paper, I have yet to see much evidence of this. Didn't Averstar/Intermetric's Ada compiler use 'C' as an intermediate representation?