comp.lang.ada
 help / color / mirror / Atom feed
From: kalvin.news@gmail.com
Cc: anon@anon.org
Subject: Re: Ada to C translator for small microcontrollers
Date: Tue, 27 Mar 2012 13:13:46 -0700 (PDT)
Date: 2012-03-27T13:13:46-07:00	[thread overview]
Message-ID: <26305817.1823.1332879226490.JavaMail.geo-discussion-forums@vbiz13> (raw)
In-Reply-To: <jkssvu$1sh0$1@news.ett.com.ua>

tiistaina 27. maaliskuuta 2012 20.22.07 UTC+3 an...@att.net kirjoitti:
> 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.

This is a very valid question. How large a software project needs to be in order to benefit from implementing it in Ada? Is it only a one person prjoect, two person project or project involving a small team. Why bother with Ada as we already have (free) C compiler avaiable.

If the project is a small one, and you don't have to share the code with others, C is just fine. But as soon as the project size get bigger (than a few thousand lines of code, or project contains more than ten source modules) and you need to collaborate with others, my guess is that Ada might be a right tool for the job. Of course, these estimates are pulled top of my head, but are based on a personal experience anyway.
 
> 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.

I do not know the internals of GCC, but I am in impression that GCC is optimized for 32/64-bit architectures, and 8/16-bit architectures are hardly supported. I do know, that some Hitachi (and maybe AVR) 8/16-bit controllers are supported, though.

> 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.

I do realize, that it might be almost impossible to produce efficient C source translation for corresponding Ada, compared to corresponding assembly.

- Kalvin



  reply	other threads:[~2012-03-27 20:15 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 [this message]
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