From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_40,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Received: by 2002:a37:4903:: with SMTP id w3mr30043865qka.178.1593701463936; Thu, 02 Jul 2020 07:51:03 -0700 (PDT) X-Received: by 2002:a9d:424:: with SMTP id 33mr10562370otc.76.1593701463736; Thu, 02 Jul 2020 07:51:03 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 2 Jul 2020 07:51:03 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=79.19.129.183; posting-account=JRF_-woAAABYlsAtkCl_CUxBuQy2SsaQ NNTP-Posting-Host: 79.19.129.183 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: SweetAda 0.1 released From: gabriele.galeotti.xyz@gmail.com Injection-Date: Thu, 02 Jul 2020 14:51:03 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:59314 List-Id: On Wednesday, July 1, 2020 at 6:57:33 PM UTC+2, St=C3=A9phane Rivi=C3=A8re = wrote: > Hi Gabriele, >=20 > > I feel very sorry, unfortunately the AVR is the ONLY cpu I can't provid= e even elementary support, because I am still waiting an hardware board. >=20 > No problem. May be it's an opportunity to help each other... >=20 > Any small arduino board could fit at nearly no expanse. >=20 > To give you a perspective of the various existing development > environments for AVR and Ada : > https://stef.genesix.org/pub/ada/embedded_AVR-Ada_%20Setup_v29.pdf >=20 > > I promise you effort on that, maybe not just tomorrow morning. I just h= ad no time to build a test emulator environment. Please give me a little bi= t of time. The AVR toolchain exists because, once I automated the build, I = got it nearly for free, and it is an interesting CPU. >=20 > I understand, I have to reactivate mine too :) >=20 > > Being said that, runsweetada is useful only for the QEMU emulator, so n= o worries if you plan to work on bare hardware.=20 >=20 > That's the case... Bare Metal only... >=20 > There is also AVR emulators under Linux like > https://github.com/buserror/simavr for particular needs. >=20 > I know that the manual is missing important pieces, ask me without fear. > Please explain me your context in detail, so I can help you. >=20 > Many thanks ! >=20 > > And thanks for your interest. >=20 > You're welcome ! Your project is a motivating one. >=20 > --=20 > Be Seeing You > Number Six Hi St=C3=A9phane. Have a look at the site. Download sweetada-0.1b.tar.gz and re-download swee= tada-rts.tar.gz. The core package has now an "AVR-simavr" platform. There is nothing, but at= least you could verify if it generates code. The RTS has now a complete ru= ntime for AVR, something functional. Some notably things: - the GCC front-end does not generate atomic instructions, I think this is = due to actual implementation or maybe the lack of that instructions in AVR = chips. Chances are the even a C compiler will refuse a similar construct. - nearly the same reason, in RTS, no 64-bit floats, but this a rather impra= ctical thing to worry about now, since there is no even basic support for o= ther most useful things - you have to comment out in core/core.ads the "Atomic" aspect in the decla= ration of Tick_Count, simply put a double dash in front of it. It is obviou= sly not used but ADAC will just complains Have a look in platforms/AVR-simavr/configuration.in and change whatever yo= u want to suit your needs. I had no time to make a full simavr test, I've o= nly check a GDB connection and it shows something interesting. Check the de= claration of the ports. Maybe they need adjustment. Just for the record, I = am going to buy an AVR board very soon. Let me know.