digitalmars.D.ldc - version (AVR)
- =?UTF-8?B?Q2hsb8Op?= Kekoa (14/14) Jun 14 2020 I’m currently using D to program an ATmega328P microcontroller,
- kinke (2/4) Jun 14 2020 Try a v1.22 beta, version (AVR) was added with beta1.
- David Nadlinger (5/9) Jun 14 2020 Also, for future reference, the table of predefined versions (not all
- =?UTF-8?B?Q2hsb8Op?= Kekoa (3/13) Jun 15 2020 Thanks, will give that a try and see if I can add the definitions
I’m currently using D to program an ATmega328P microcontroller, which interprets the AVR instruction set. Works quite well, but there are some definitions missing from the core library, such as a definition for c_long, when compiling for AVR. This makes it impossible to import parts of the standard library that rely on these definitions being there. I’d like to add the missing features to druntime, but this requires a version switch for AVR. Is there such a switch? If not I could add it to LDC, would “AVR” be a good name? For instance, the following code currently compiles, but ideally shouldn’t: version (AVR) static assert(false); Using ldc2 -mtriple=avr-atmel-none -mcpu=atmega328p
Jun 14 2020
On Sunday, 14 June 2020 at 19:53:35 UTC, Chloé Kekoa wrote:I’d like to add the missing features to druntime, but this requires a version switch for AVR.Try a v1.22 beta, version (AVR) was added with beta1.
Jun 14 2020
On 14 Jun 2020, at 21:00, kinke via digitalmars-d-ldc wrote:On Sunday, 14 June 2020 at 19:53:35 UTC, Chloé Kekoa wrote:Also, for future reference, the table of predefined versions (not all necessarily implemented on LDC) can be found at https://dlang.org/spec/version.html#predefined-versions. — DavidI’d like to add the missing features to druntime, but this requires a version switch for AVR.Try a v1.22 beta, version (AVR) was added with beta1.
Jun 14 2020
On Sunday, 14 June 2020 at 21:10:31 UTC, David Nadlinger wrote:On 14 Jun 2020, at 21:00, kinke via digitalmars-d-ldc wrote:Thanks, will give that a try and see if I can add the definitions to druntime and import some more stuff from std. :)On Sunday, 14 June 2020 at 19:53:35 UTC, Chloé Kekoa wrote:Also, for future reference, the table of predefined versions (not all necessarily implemented on LDC) can be found at https://dlang.org/spec/version.html#predefined-versions. — DavidI’d like to add the missing features to druntime, but this requires a version switch for AVR.Try a v1.22 beta, version (AVR) was added with beta1.
Jun 15 2020