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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a02:98eb:: with SMTP id c40-v6mr1668633jak.32.1532120741172; Fri, 20 Jul 2018 14:05:41 -0700 (PDT) X-Received: by 2002:aca:eb15:: with SMTP id j21-v6mr32973oih.6.1532120741030; Fri, 20 Jul 2018 14:05:41 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.linkpendium.com!news.linkpendium.com!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!g2-v6no2042345itf.0!news-out.google.com!l67-v6ni3441itl.0!nntp.google.com!g2-v6no2042340itf.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 20 Jul 2018 14:05:40 -0700 (PDT) In-Reply-To: <611759ac-2b7f-4d12-9cc9-4769f7382d01@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=165.225.72.119; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S NNTP-Posting-Host: 165.225.72.119 References: <1d3743b1-1a36-429d-92c7-9ae0e7c16e63@googlegroups.com> <8cf99886-bbf2-4fb9-9a92-aaa5403a2624@googlegroups.com> <821c650e-72ae-4bd1-97a4-3a9bd7433d48@googlegroups.com> <2e79b691-61d0-4ed4-8fb8-5d2187bbf06f@googlegroups.com> <611759ac-2b7f-4d12-9cc9-4769f7382d01@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <530d8baa-ad09-4870-a59d-ef5f0b7f5b99@googlegroups.com> Subject: Re: Ada: A beginners experience From: Maciej Sobczak Injection-Date: Fri, 20 Jul 2018 21:05:41 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:53920 Date: 2018-07-20T14:05:40-07:00 List-Id: > Just following along blindly > came up with various errors like that it needed system.ads. [...] OK, I see where this comes from. Indeed, it might be the case that the nati= ve compiler on Raspberry has the language details set up fortunately enough= that such manipulations are not necessary - while cross-compilers on other= systems can use different setups and cause troubles. Indeed, this is a val= uable note to take. You might find it interesting that the whole tutorial was created from expe= riments that involved analysis of the resulting assembly output. As long as= the assembly was as expected for the target microcontroller, the narrative= and examples evolved. It might not be easy to adopt, but I'm prone to conc= lude that this step is part of the game and perhaps it could also help disc= over some of the cross-compilation issues earlier. > A new=20 > beginner is not going to immediately link this to not having and RTS. Right. > Like I said, it was good. I just wanted the OP to understand that=20 > while it mentions cross-compile, just blinding following the steps > and replacing the commands with the cross compile ones doesn't work. Good point, thank you. Note also that even with the compiler on Raspberry, = there is no guarantee that all examples will work forever - new compiler ve= rsions might introduce some minor differences here and there. I have notice= d myself some new ABI calls where they weren't needed, after upgrading the = compiler. Yes, embedded systems is a hobby for tinkerers. :-) > package body Program is >=20 > X : Integer :=3D 123; -- This actually worked correctly for me Interesting! I cannot explain that without analyzing the assembly and the l= inker script, but I can imagine it being the case. > I really think your book is great, so please don't take any comments > as antagonistic. I recommend it to anyone I see getting started in > micro-controller development. Thank you for the good comments. --=20 Maciej Sobczak * http://www.inspirel.com