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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,3025dd6d917b499c X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.74.79 with SMTP id r15mr9895638wiv.4.1356837412210; Sat, 29 Dec 2012 19:16:52 -0800 (PST) Path: i11ni337233wiw.0!nntp.google.com!feeder3.cambriumusenet.nl!feeder1.cambriumusenet.nl!82.197.223.108.MISMATCH!feeder2.cambriumusenet.nl!feed.tweaknews.nl!94.232.116.11.MISMATCH!feed.xsnews.nl!border-1.ams.xsnews.nl!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsreader4.netcologne.de!news.netcologne.de!feeds.phibee-telecom.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: Ada, the best language with the not-so-best tool chain Date: Wed, 26 Dec 2012 10:38:42 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <38af7fb8-b0a4-4a31-87aa-b7b698cc89c3@googlegroups.com> <3ca0ffd0-1764-484b-8fab-17c0d2dd9463@googlegroups.com> <1f645050-cf4c-40bf-a797-9687b69e4a54@googlegroups.com> <18ats2960nsvm$.kfufsnul13aq$.dlg@40tude.net> <5072c9ae$0$6562$9b4e6d93@newsspool4.arcor-online.net> <4keoa6epdxt7.1nnwxy7v7ar90.dlg@40tude.net> <5072dc68$0$6554$9b4e6d93@newsspool4.arcor-online.net> <1f7cmfp1l65w1.1deog8cfxbs0u$.dlg@40tude.net> <5072e37a$0$6556$9b4e6d93@newsspool4.arcor-online.net> <877gr0hcvz.fsf@ludovic-brenta.org> <87sj8kzbac.fsf@adaheads.sparre-andersen.dk> <7xr4me4h0f.fsf@ruckus.brouhaha.com> Mime-Version: 1.0 Injection-Date: Wed, 26 Dec 2012 10:38:42 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="dfff62e1e537b55df42008571c03e0fe"; logging-data="17597"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18CfObQattdKPvR6HZvwr50Q2FdzkELWgQ=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:YkUN5rUuMzil+BQW73wUptYvKLw= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2012-12-26T10:38:42+00:00 List-Id: On Tue, 25 Dec 2012 01:29:04 -0800, Paul Rubin wrote: > Brian Drummond writes: >> Don't know if there will be any interest in Ada on the MSP430? > > Yes! What you've done is way cool. I got a TI Launchpad recently and > haven't had time to set it up yet, but it would be awesome to program it > in Ada. Can the compiler make code for something that small? The > bigger of the two cpu's (it comes with two) has 16k of program flash and > 512 bytes of ram, and the smaller has 2k/128b. Well, my own target device has 2k/128B (MSP430F20102) so, yes. I haven't even begun to trim executables, so "Blinky" is about 300 bytes vs 65 for AVR-Ada. But you lose 32 bytes to interrupt vectors, there's a 74 byte section full of unnecessary strings, and a full C startup so there's room for improvement... The entire Ada program is 77 bytes with no optimisation flags. I don't know how MSP430 code density generally compares to AVR, but as a starting point this looks hopeful. - Brian