comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Drummond <brian_drummond@btconnect.com>
Subject: Re: Ada as a first language
Date: Mon, 23 Mar 2009 13:29:28 +0000
Date: 2009-03-23T13:29:28+00:00	[thread overview]
Message-ID: <r33fs4h5di2v0si3k8mi2vetqeglsdchfu@4ax.com> (raw)
In-Reply-To: Xns9BD747BEB2151pcc482719gmailcom@198.186.192.137

On 23 Mar 2009 11:03:37 GMT, "Peter C. Chapin" <pcc482719@gmail.com> wrote:

>Brian Drummond <brian_drummond@btconnect.com> wrote in
>news:hhics4h0pagtf9gcc6n9bsdfh0i64atb65@4ax.com: 
>
>> However it is something of a minority language; you will be limited in
>> the support and tools you can find for it.
>
>The AdaMagic compiler by SofCheck: 
>
>     http://www.sofcheck.com/products/adamagic.html
>
>has a version that takes Ada95 source and generates C. I'm working with 
>a student who is using this product to write Ada for a small embedded 
>system for which we only have a C compiler. The bulk of the program is 
>written in Ada, translated to C using AdaMagic, and then compiled with 
>the "native" C compiler. The student has had to write a few low level 
>interfacing functions in C but calling them from Ada is simple 

Interesting approach, and for the interfacing functions you can restrict
yourself to a small subset of C, avoiding its more "interesting" features.

>I should also note that fluency in both Ada and C is desirable if one 
>tries this approach. So while interesting, it probably isn't of 
>immediate use to the OP.

which is why I suggested "fit and forget" for the C libraries. If they just
work, you have saved time. If not... I'd rather use Ada for interfacing. 
Does AdaMagic have trouble translating low level code like interrupt handlers or
representation clauses?

AdaMagic doesn't look free, which may be a consideration for personal
experiments.

- Brian




  reply	other threads:[~2009-03-23 13:29 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-22  2:26 Ada as a first language Chris
2009-03-22 10:36 ` mockturtle
2009-03-22 14:44 ` Brian Drummond
2009-03-23 11:03   ` Peter C. Chapin
2009-03-23 13:29     ` Brian Drummond [this message]
2009-03-25 10:51       ` Peter C. Chapin
2009-03-23 16:59   ` rolf.ebert_nospam_
2009-03-24 19:22   ` Tim Rowe
2009-04-04  1:42     ` Brian Gaffney
2009-04-07  9:50       ` Alex R. Mosteo
2009-03-22 15:21 ` Gary Scott
2009-03-23  8:28 ` Brian
2009-03-23  9:05   ` Jacob Sparre Andersen
2009-03-23 22:02     ` Brian
2009-03-24  1:41       ` Gautier
2009-03-24  5:56       ` Jacob Sparre Andersen
2009-03-24 22:30         ` Brian
2009-03-25  9:41           ` rmoldskr+usenet
2009-03-25 22:27             ` Brian
2009-03-25 17:58       ` John McCormick
2009-03-25 23:20         ` Brian
2009-03-23 12:08 ` Chris
2009-03-25 21:10   ` John McCormick
2009-04-11 16:40   ` Mike Silva
2009-03-23 23:05 ` jpwoodruff
2009-03-25  0:16 ` Martin
2009-03-25 15:54 ` John McCormick
  -- strict thread matches above, loose matches on Subject: below --
1997-07-03  0:00 Ada as a First Language RC
1997-07-03  0:00 ` Michael Feldman
1997-07-06  0:00 ` Alan Brain
1997-07-06  0:00   ` Robert Dewar
1997-07-16  0:00   ` Eric James DeArment
1997-07-07  0:00 ` Shmuel (Seymour J.) Metz
1992-12-29 15:40 agate!dog.ee.lbl.gov!hellgate.utah.edu!fcom.cc.utah.edu!vx9000.weber.edu!
replies disabled

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