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: a07f3367d7,3025dd6d917b499c X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.213.1 with SMTP id gu1mr14292829qab.7.1349769764222; Tue, 09 Oct 2012 01:02:44 -0700 (PDT) Received: by 10.52.34.201 with SMTP id b9mr574098vdj.1.1349769764174; Tue, 09 Oct 2012 01:02:44 -0700 (PDT) Path: r17ni19qap.0!nntp.google.com!l8no32434695qao.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 9 Oct 2012 01:02:43 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.150.124.2; posting-account=QrZwxQoAAAByl3YAWTpexAk3yBYyZMHn NNTP-Posting-Host: 83.150.124.2 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> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <891f0a08-da88-4cec-bcbc-3a987d3c05fd@googlegroups.com> Subject: Re: Ada, the best language with the not-so-best tool chain From: kalvin.news@gmail.com Injection-Date: Tue, 09 Oct 2012 08:02:44 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-10-09T01:02:43-07:00 List-Id: tiistai, 9. lokakuuta 2012 8.59.27 UTC+3 Niklas Holsti kirjoitti: > On 12-10-09 00:28 , Ludovic Brenta wrote: >=20 > > Patrick writes on comp.lang.ada: >=20 > > * bare-metal programming is _very_ difficult in any language. >=20 >=20 >=20 > Yes and no; some small bare metal systems are easy (on reset, the >=20 > processor starts running from address zero with a workable initial >=20 > state); others are much harder to get running (as you say in a later >=20 > point, not quoted). >=20 >=20 >=20 > But every small board or processor-on-a-USB-stick that I have seen comes >=20 > with a C toolchain that handles the bootstrap, and you can get a >=20 > LED-blinker running very easily. Not so for Ada, except for the small >=20 > number of systems already mentioned (MaRTE OS; Ada for Lego Mindstorms; >=20 > GNAT for AVR). >=20 I agree with Niklas. Some bare metal system require that the (C language) s= tartup code does some initialisation for the runtime system. Typically the = startup code initialises the chip selects etc. and then allocates RAM for t= he runtime system, and finally calls each modules' initialisation code. It = is not *that* difficult. Basically you need to know how to configure the ch= ip select and where the RAM is located and how much RAM you have. It is a shame, that we don't have Ada support for these bare metal boards. = If we could have an Ada compiler for popular microcontrollers like ARM and = MIPS (PIC32), Ada might get more popular as the hobbyist engineers could pl= ay with Ada and see its strength, and dispel the myths regarding Ada. - Kalvin