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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5f6125e9594f9968 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.241.98 with SMTP id wh2mr23055467pbc.7.1337603317826; Mon, 21 May 2012 05:28:37 -0700 (PDT) Path: pr3ni20105pbb.0!nntp.google.com!news1.google.com!goblin1!goblin3!goblin.stu.neva.ru!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!usenet-fr.net!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Mon, 21 May 2012 14:27:07 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada to C translator for small microcontrollers References: <2424259e-cf1c-408e-a57e-f2c948087186@i2g2000vbv.googlegroups.com> In-Reply-To: Message-ID: <4fba349b$0$6560$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 21 May 2012 14:27:07 CEST NNTP-Posting-Host: ddb2cb5d.newsspool4.arcor-online.net X-Trace: DXC=DgL`57UMiSig`45cDR8l?o4IUKjLh>_cHTX3jm>IFE3^;1kPl X-Complaints-To: usenet-abuse@arcor.de Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: 2012-05-21T14:27:07+02:00 List-Id: On 21.05.12 12:35, kalvin.news@gmail.com wrote: > I found this paper "No Assembly Required: Compiling Standard ML to C" which presents some ideas and experience in using the C as compiler target language. > > http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.70.154&rep=rep1&type=pdf > > The Standard ML differs quite a lot from C, and "The generated code achieves an execution speed that is about a factor of two slower than a native code compiler". However, as Ada is closer to C, the resulting overhead is supposed be less. Also, implementing only a carefully selected subset of Ada language might help in creating better translation to target C language. ATS, which adds linear types and proofs to ML (not that I really know what linear types are, except that they are not ref types like those for scalars in ML), uses C a a target language too, and is about as fast, or faster. Eiffel also generates C; there is a GPL edition of the compiler. Don't know whether it is suitable for �Controllers, though.