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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,5f6125e9594f9968 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Received: by 10.68.241.71 with SMTP id wg7mr2612021pbc.8.1338887982730; Tue, 05 Jun 2012 02:19:42 -0700 (PDT) Path: l9ni5392pbj.0!nntp.google.com!news2.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: kalvin.news@gmail.com Newsgroups: comp.lang.ada Subject: Re: Ada to C translator for small microcontrollers Date: Tue, 5 Jun 2012 02:18:11 -0700 (PDT) Organization: http://groups.google.com Message-ID: <7ad13453-fea5-4b3a-9a93-306302f073da@googlegroups.com> References: <2424259e-cf1c-408e-a57e-f2c948087186@i2g2000vbv.googlegroups.com> <4fba349b$0$6560$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Host: 83.150.124.2 Mime-Version: 1.0 X-Trace: posting.google.com 1338887892 7657 127.0.0.1 (5 Jun 2012 09:18:12 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 5 Jun 2012 09:18:12 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.150.124.2; posting-account=QrZwxQoAAAByl3YAWTpexAk3yBYyZMHn User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-06-05T02:18:11-07:00 List-Id: lauantai, 2. kes=E4kuuta 2012 18.27.06 UTC+3 Marco kirjoitti: > On Monday, May 21, 2012 5:27:07 AM UTC-7, Georg Bauhaus wrote: > > On 21.05.12 12:35, kalvin wrote: >=20 > > Eiffel also generates C; there is a GPL edition of > > the compiler. Don't know whether it is suitable > > for =B5Controllers, though. >=20 > SmartEiffel > http://en.wikipedia.org/wiki/SmartEiffel > http://smarteiffel.loria.fr/ >=20 > Could be used for ideas on creating a subset Ada to C "compiler". Good pointer, thanks! Actually, there have been quite a few good suggestions on how to create an = translator. As Niklas Holsti suggested sometime above, the translation from GNAT IR to = C might be the easiest way. I thought about this, and as there exists a GNA= T Ada Pretty Printer, and if I have understood it correctly, it uses GNAT I= R for recreating the source code. This might be the easiest way to create t= he translator, as rewriting the source code formatting rules to produce C s= ource instead. Any comments on this possible approach? Br, Kalvin.