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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM 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-7-bit Received: by 10.68.195.131 with SMTP id ie3mr22778089pbc.8.1337596552524; Mon, 21 May 2012 03:35:52 -0700 (PDT) Path: pr3ni19553pbb.0!nntp.google.com!news2.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: kalvin.news@gmail.com Newsgroups: comp.lang.ada Subject: Re: Ada to C translator for small microcontrollers Date: Mon, 21 May 2012 03:35:51 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <2424259e-cf1c-408e-a57e-f2c948087186@i2g2000vbv.googlegroups.com> NNTP-Posting-Host: 83.150.124.2 Mime-Version: 1.0 X-Trace: posting.google.com 1337596552 19534 127.0.0.1 (21 May 2012 10:35:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 21 May 2012 10:35:52 +0000 (UTC) In-Reply-To: <2424259e-cf1c-408e-a57e-f2c948087186@i2g2000vbv.googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.150.124.2; posting-account=QrZwxQoAAAByl3YAWTpexAk3yBYyZMHn User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-05-21T03:35:51-07:00 List-Id: 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 langu= age. http://citeseerx.ist.psu.edu/viewdoc/download?doi=3D10.1.1.70.154&rep=3Drep= 1&type=3Dpdf The Standard ML differs quite a lot from C, and "The generated code achieve= s an execution speed that is about a factor of two slower than a native cod= e compiler". However, as Ada is closer to C, the resulting overhead is supp= osed be less. Also, implementing only a carefully selected subset of Ada la= nguage might help in creating better translation to target C language.