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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no 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 uv10mr9697196pbc.4.1332789366056; Mon, 26 Mar 2012 12:16:06 -0700 (PDT) MIME-Version: 1.0 Path: z9ni4702pbe.0!nntp.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: anon@att.net Newsgroups: comp.lang.ada Subject: Re: Ada to C translator for small microcontrollers Date: Mon, 26 Mar 2012 19:16:01 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <2424259e-cf1c-408e-a57e-f2c948087186@i2g2000vbv.googlegroups.com> Reply-To: anon@anon.org NNTP-Posting-Host: bNCDK5qHwGebQhHJECoqpg.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: IBM NewsReader/2 2.0 X-Received-Bytes: 2042 Date: 2012-03-26T19:16:01+00:00 List-Id: There are some projects that may work. But the power of GNU GCC and GNAT is that you can add code for any processor you want. There are some infomation on the web that will help in adding a new target processor. Another way is to re-write the "Back_End.adb, trans.c, etc" files for GNAT. Between 1994 and 1997 for fun I rewote those files in Ada. Actually the code generated was far superior to GCC generated code. Plus, in this version you can easy alter the format of the object code to fit the linker of your choice. So, your not tied to GNU ld to produce executable binaries. In <2424259e-cf1c-408e-a57e-f2c948087186@i2g2000vbv.googlegroups.com>, Tomi Saarnio writes: >Hi all, > >As there exists at least one free decent C cross-compiler for smaller >8-bit and 16-bit architectures (Pic, Avr, 8051 etc.), but none Ada >compiler that I know of, I was wondering whether there is a demand for >an Ada to C translator, that would implement some sort of Ada subset >and output corresponding ANSI C source code. I am not a compiler or >Ada expert, so I cannot really estimate the effort how hard this would >be. > >As far as I can see the problem, the first thing is to identify a >suitable subset(s) to be implemented, and then to come up with the >corresponding C source idioms. > >Any comments on this subject? > >Br, >Kalvin.