comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Drummond <brian@shapes.demon.co.uk>
Subject: Re: Ada to C translator for small microcontrollers
Date: Tue, 5 Jun 2012 12:17:28 +0000 (UTC)
Date: 2012-06-05T12:17:28+00:00	[thread overview]
Message-ID: <jqktco$brf$3@dont-email.me> (raw)
In-Reply-To: 7ad13453-fea5-4b3a-9a93-306302f073da@googlegroups.com

On Tue, 05 Jun 2012 02:18:11 -0700, kalvin.news wrote:

> 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 GNAT Ada Pretty Printer, and if I have understood it correctly, it
> uses GNAT IR for recreating the source code. This might be the easiest
> way to create the translator, as rewriting the source code formatting
> rules to produce C source instead. Any comments on this possible
> approach?

For the C back-end, it might be worth looking at an old version of f2c, 
(from before it became g77 or gfortran) to see how some other-language 
constructs were translated into c. It's probably not pretty, but I 
remember it as being a fairly small program.

- Brian



  reply	other threads:[~2012-06-05 12:17 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-26 12:48 Ada to C translator for small microcontrollers Tomi Saarnio
2012-03-26 13:44 ` Rego, P.
2012-03-26 14:14 ` Niklas Holsti
2012-03-26 15:48   ` Ludovic Brenta
2012-03-26 16:20     ` Simon Wright
2012-03-26 14:46 ` georg bauhaus
2012-03-26 19:16 ` anon
2012-03-27  9:46 ` kalvin.news
2012-03-27 17:22   ` anon
2012-03-27 20:13     ` kalvin.news
2012-03-28 14:29       ` KK6GM
2012-03-28 16:36       ` Niklas Holsti
2012-03-28 17:56         ` KK6GM
2012-03-28 21:03         ` Georg Bauhaus
2012-03-30 11:54           ` phil.clayton
2012-03-31 15:46         ` kalvin.news
2012-03-31 19:52           ` Rugxulo
2012-04-01 11:23             ` kalvin.news
2012-04-02 21:46             ` Niklas Holsti
2012-04-03  5:56               ` J-P. Rosen
2012-04-03  2:08 ` BrianG
2012-04-03  9:29   ` Georg Bauhaus
2012-05-21 10:35 ` kalvin.news
2012-05-21 12:27   ` Georg Bauhaus
2012-06-02 15:27     ` Marco
2012-06-05  9:18       ` kalvin.news
2012-06-05 12:17         ` Brian Drummond [this message]
2012-06-06  5:21           ` J-P. Rosen
2012-06-06 11:50             ` Brian Drummond
2012-06-10 15:41         ` Marco
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox