Re: wiki: D on AVR

2019-11-28 Thread Ernesto Castellotti via Digitalmars-d-announce
On Thursday, 28 November 2019 at 21:48:52 UTC, Ola Fosheim Grostad wrote: On Thursday, 28 November 2019 at 18:40:17 UTC, Ernesto Castellotti wrote: Yes LDC sets size_t for the platform, not violating the spec. int in D is 32-bit as you said, that if you compare it with the size of the types of

Re: wiki: D on AVR

2019-11-28 Thread Ola Fosheim Grostad via Digitalmars-d-announce
On Thursday, 28 November 2019 at 18:40:17 UTC, Ernesto Castellotti wrote: Yes LDC sets size_t for the platform, not violating the spec. int in D is 32-bit as you said, that if you compare it with the size of the types of AVR-GCC it would be long, This is not a problem, just use the type aliases

Re: wiki: D on AVR

2019-11-28 Thread Ernesto Castellotti via Digitalmars-d-announce
On Thursday, 28 November 2019 at 17:37:31 UTC, H. S. Teoh wrote: On Thu, Nov 28, 2019 at 05:18:59PM +, Ernesto Castellotti via Digitalmars-d-announce wrote: On Thursday, 28 November 2019 at 08:31:36 UTC, Dukc wrote: > On Wednesday, 27 November 2019 at 19:30:15 UTC, Ernesto > Castellotti

Re: wiki: D on AVR

2019-11-28 Thread H. S. Teoh via Digitalmars-d-announce
On Thu, Nov 28, 2019 at 05:18:59PM +, Ernesto Castellotti via Digitalmars-d-announce wrote: > On Thursday, 28 November 2019 at 08:31:36 UTC, Dukc wrote: > > On Wednesday, 27 November 2019 at 19:30:15 UTC, Ernesto Castellotti > > wrote: > > > > > > The support to targets that use 16 bits as a

Re: wiki: D on AVR

2019-11-28 Thread Ernesto Castellotti via Digitalmars-d-announce
On Thursday, 28 November 2019 at 08:31:36 UTC, Dukc wrote: On Wednesday, 27 November 2019 at 19:30:15 UTC, Ernesto Castellotti wrote: The support to targets that use 16 bits as a pointer size has already been added to LDC (https://github.com/ldc-developers/ldc/pull/2194), so minimal AVR

Re: wiki: D on AVR

2019-11-28 Thread Dukc via Digitalmars-d-announce
On Wednesday, 27 November 2019 at 19:30:15 UTC, Ernesto Castellotti wrote: The support to targets that use 16 bits as a pointer size has already been added to LDC (https://github.com/ldc-developers/ldc/pull/2194), so minimal AVR support is present (AVR uses 16 bit pointers). Don't you run

Re: wiki: D on AVR

2019-11-27 Thread Walter Bright via Digitalmars-d-announce
On 11/27/2019 6:35 AM, Ernesto Castellotti wrote: With BetterC everything seems to be working fine, now it's time to create a framework for using D on microcontrollers! Yay!

Re: wiki: D on AVR

2019-11-27 Thread Ernesto Castellotti via Digitalmars-d-announce
On Wednesday, 27 November 2019 at 18:25:47 UTC, H. S. Teoh wrote: On Wed, Nov 27, 2019 at 02:35:53PM +, Ernesto Castellotti via Digitalmars-d-announce wrote: Hi, I wrote a page in the wiki for basic information on how to use D on AVR 8-bit, using LLVM and LDC.

Re: wiki: D on AVR

2019-11-27 Thread H. S. Teoh via Digitalmars-d-announce
On Wed, Nov 27, 2019 at 02:35:53PM +, Ernesto Castellotti via Digitalmars-d-announce wrote: > Hi, > > I wrote a page in the wiki for basic information on how to use D on AVR > 8-bit, using LLVM and LDC. > > https://wiki.dlang.org/D_on_AVR > > With BetterC everything seems to be working

Re: wiki: D on AVR

2019-11-27 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 27 November 2019 at 14:35:53 UTC, Ernesto Castellotti wrote: I wrote a page in the wiki for basic information on how to use D on AVR 8-bit, using LLVM and LDC. Nice! We should compile this option into upstream ldc so the binaries just work too for maximum convenience.

wiki: D on AVR

2019-11-27 Thread Ernesto Castellotti via Digitalmars-d-announce
Hi, I wrote a page in the wiki for basic information on how to use D on AVR 8-bit, using LLVM and LDC. https://wiki.dlang.org/D_on_AVR With BetterC everything seems to be working fine, now it's time to create a framework for using D on microcontrollers!