comp.lang.ada
 help / color / mirror / Atom feed
From: gabriele.galeotti.xyz@gmail.com
Subject: Re: SweetAda 0.1 released
Date: Thu, 2 Jul 2020 07:51:03 -0700 (PDT)	[thread overview]
Message-ID: <cbfca429-5f33-49b9-a580-7ec3fed4ee07o@googlegroups.com> (raw)
In-Reply-To: <rdif9p$1bg0$1@gioia.aioe.org>

On Wednesday, July 1, 2020 at 6:57:33 PM UTC+2, Stéphane Rivière wrote:
> Hi Gabriele,
> 
> > I feel very sorry, unfortunately the AVR is the ONLY cpu I can't provide even elementary support, because I am still waiting an hardware board.
> 
> No problem. May be it's an opportunity to help each other...
> 
> Any small arduino board could fit at nearly no expanse.
> 
> 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
> 
> > I promise you effort on that, maybe not just tomorrow morning. I just had no time to build a test emulator environment. Please give me a little bit of time. The AVR toolchain exists because, once I automated the build, I got it nearly for free, and it is an interesting CPU.
> 
> I understand, I have to reactivate mine too :)
> 
> > Being said that, runsweetada is useful only for the QEMU emulator, so no worries if you plan to work on bare hardware. 
> 
> That's the case... Bare Metal only...
> 
> There is also AVR emulators under Linux like
> https://github.com/buserror/simavr for particular needs.
> 
> 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.
> 
> Many thanks !
> 
> > And thanks for your interest.
> 
> You're welcome ! Your project is a motivating one.
> 
> -- 
> Be Seeing You
> Number Six

Hi Stéphane.

Have a look at the site. Download sweetada-0.1b.tar.gz and re-download sweetada-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 runtime 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 impractical thing to worry about now, since there is no even basic support for other most useful things

- you have to comment out in core/core.ads the "Atomic" aspect in the declaration of Tick_Count, simply put a double dash in front of it. It is obviously not used but ADAC will just complains

Have a look in platforms/AVR-simavr/configuration.in and change whatever you want to suit your needs. I had no time to make a full simavr test, I've only check a GDB connection and it shows something interesting. Check the declaration of the ports. Maybe they need adjustment. Just for the record, I am going to buy an AVR board very soon.

Let me know.

  parent reply	other threads:[~2020-07-02 14:51 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-30 16:34 SweetAda 0.1 released gabriele.galeotti.xyz
2020-07-01  9:32 ` Fabien Chouteau
2020-07-01 11:06   ` gabriele.galeotti.xyz
2020-07-01 12:19     ` Fabien Chouteau
2020-07-01 11:01 ` Stéphane Rivière
2020-07-01 11:24   ` gabriele.galeotti.xyz
2020-07-01 16:56     ` Stéphane Rivière
2020-07-01 18:04       ` gabriele.galeotti.xyz
2020-07-02 14:51       ` gabriele.galeotti.xyz [this message]
2020-07-03  4:12         ` Stéphane Rivière
2020-07-03 10:06           ` gabriele.galeotti.xyz
2020-07-07  8:44             ` Stéphane Rivière
2020-07-07  9:25               ` gabriele.galeotti.xyz
2020-07-07 10:47                 ` Stéphane Rivière
2020-07-07 16:28                 ` Stéphane Rivière
2020-07-07 16:50                   ` gabriele.galeotti.xyz
2020-07-07 18:25                     ` Stéphane Rivière
2020-07-01 15:00 ` Roger
2020-07-01 15:30   ` Roger
2020-07-01 15:47     ` gabriele.galeotti.xyz
2020-07-01 15:37   ` gabriele.galeotti.xyz
2020-07-02  4:21     ` Roger
2020-07-02  4:37       ` Roger
2020-07-02  4:47     ` Roger
2020-07-02 11:04       ` gabriele.galeotti.xyz
2020-07-02 13:03         ` Roger
2020-07-02 15:26           ` gabriele.galeotti.xyz
2020-07-04  0:30             ` Roger
2020-07-04 15:59               ` gabriele.galeotti.xyz
2020-07-05  2:15                 ` Roger
2020-07-05 21:41                   ` gabriele.galeotti.xyz
2020-07-06  3:03                     ` Roger
2020-07-06  8:36                       ` gabriele.galeotti.xyz
2020-07-06 11:30                         ` Roger
2020-07-06 15:04                           ` gabriele.galeotti.xyz
2020-07-06 16:13                           ` gabriele.galeotti.xyz
2020-07-07  0:53                             ` Roger
2020-07-07  7:20                               ` Roger
2020-07-07  8:13                                 ` gabriele.galeotti.xyz
2020-07-07 11:37                                   ` Roger
2020-07-09  6:54                                   ` Roger
2020-07-09 19:50                                     ` gabriele.galeotti.xyz
2020-07-10  0:24                                       ` Roger
2020-07-10  6:44                                         ` Roger
2020-07-11 10:15                                           ` gabriele.galeotti.xyz
2020-07-11 16:18                                           ` gabriele.galeotti.xyz
2020-07-12  2:45                                             ` Roger
2020-07-12  9:59                                               ` gabriele.galeotti.xyz
2020-07-13  6:29                                                 ` Roger
2020-07-13 10:07                                                   ` gabriele.galeotti.xyz
2020-07-13 12:03                                                     ` Roger
2020-07-13 12:18                                                       ` gabriele.galeotti.xyz
2020-07-14 16:53                                                       ` gabriele.galeotti.xyz
2020-07-15  7:52                                                         ` Roger
2020-07-16 11:09                                                           ` gabriele.galeotti.xyz
2020-07-16 11:35                                                             ` Roger
2020-07-16 11:58                                                               ` Roger
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox