From: anon@att.net
Subject: Re: Ada to C translator for small microcontrollers
Date: Tue, 27 Mar 2012 17:22:07 +0000 (UTC)
Date: 2012-03-27T17:22:07+00:00 [thread overview]
Message-ID: <jkssvu$1sh0$1@news.ett.com.ua> (raw)
In-Reply-To: 18324383.19.1332841560517.JavaMail.geo-discussion-forums@vbht7
Full language translators are mostly used to move a project away from
one language to another more accessable language. So, why use Ada in
the first place.
Now, if you add the code for a new processor to GNU GCC and GNAT then
most languages are avialable for use. Not just Ada and C/C++, but you
can also have Fortran, Java, and etc.
Plus, before using language translators you should understand that most
only aid in the translating a subset of the full language. Like "C2Ada"
which partially converted C code to Ada.
And some translators are limited. Like a number of years ago when Adacore
drop the Glade package for Annex E (Distributed Systems) for polyorb I
wrote a pure Ada "RPC_Generator" program. This program convert the "Remote
Procedure Call" Language (a C like language) to Ada. Allowing Ada to use
the full functions of a RPC package. The program could be used with Ada
only design or injunction with other "RPCGEN" programs for other languages
to allow a more multiple language style of distributed system.
RPC_Generator -- "Remote Procedure Call" Language to Ada Language.
This utility creates both the client and server packages for the RPC in
Ada. In either a single standard Ada file package structure or the
body/specification files set used by GNAT.
In <18324383.19.1332841560517.JavaMail.geo-discussion-forums@vbht7>, kalvin.news@gmail.com writes:
>As Niklas and Georg pointed well out, SofCheck (www.sofcheck.com) provides such an Ada (95) compiler, which will emit corresponding C source as its output. This may not be freely available, though?.
>
>maanantaina 26. maaliskuuta 2012 22.16.01 UTC+3 an...@att.net kirjoitti:
>> 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.
>
>Maybe this might be the easiest path to follow. Although GNAT implements full Ada language, it might be able to define smaller subset that the front-end and/or back-end will support for given target C language.
>
>There is also GPL Ada to C/C++ translator, but I have not looked at this yet:
>http://adatoccpptranslator.free.fr/
>It seems that this tool is mainly aimed to aid the process of translating existing Ada source code to C/C++. However, the GPL'd source code is available.
>
>Br,
>Kalvin
next prev parent reply other threads:[~2012-03-27 17:22 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 [this message]
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
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