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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c5f189513e1f5f8a X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 23 Mar 2009 08:28:13 -0500 From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: Ada as a first language Date: Mon, 23 Mar 2009 13:29:28 +0000 Reply-To: brian@shapes.demon.co.uk Message-ID: References: <01d59695$0$20632$c3e8da3@news.astraweb.com> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-5pzggzhIw85gC7SOsPCS11ZcumfD31PR7T1EdCXP0skGrXKDV5x5cLQLu9UUo859ZWtuQa+W6rSpvRM!Yzki8Xd9ACH89E/WTPXD3ucSSc8k0A7cL6qwz/Ctkq+8xRpEnLcVQ1rFcOXrsI7eWDxdTt+NrZEZ!biU= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Xref: g2news1.google.com comp.lang.ada:4233 Date: 2009-03-23T13:29:28+00:00 List-Id: On 23 Mar 2009 11:03:37 GMT, "Peter C. Chapin" wrote: >Brian Drummond 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