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,5f6125e9594f9968 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.236.170 with SMTP id uv10mr9134951pbc.4.1332776935824; Mon, 26 Mar 2012 08:48:55 -0700 (PDT) Path: z9ni4143pbe.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Ada to C translator for small microcontrollers Date: Mon, 26 Mar 2012 08:48:55 -0700 (PDT) Organization: http://groups.google.com Message-ID: <11915136.34.1332776935046.JavaMail.geo-discussion-forums@vbth14> References: <2424259e-cf1c-408e-a57e-f2c948087186@i2g2000vbv.googlegroups.com> <9tbbt9Fhe9U1@mid.individual.net> NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 X-Trace: posting.google.com 1332776935 22786 127.0.0.1 (26 Mar 2012 15:48:55 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 26 Mar 2012 15:48:55 +0000 (UTC) In-Reply-To: <9tbbt9Fhe9U1@mid.individual.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-03-26T08:48:55-07:00 List-Id: Niklas Holsti wrote on comp.lang.ada: > I think the realistic approach for an open-source implementation would > be to take the existing GNAT front-end and try to generate C code from > the intermediate representation, either the gcc IR or the llvm IR. That's a good thought. LLVM already comes with a C backend (i.e. a code generator that emits C rather than assembly). I wonder how easy it would be to configure a toolchain based on the GNAT Ada front-end and this C back-end, bound together by LLVM's DragonEgg GCC plug-in. -- Ludovic Brenta. The thought leader thinks differently.