wiki: D on AVR
H. S. Teoh
hsteoh at quickfur.ath.cx
Thu Nov 28 17:37:31 UTC 2019
On Thu, Nov 28, 2019 at 05:18:59PM +0000, 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 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 into trouble with the fact that the defualt integer
> > size is 32 bits?
> In LDC, the integers size depends on the target architecture.
>
> https://github.com/ldc-developers/ldc/blob/0a1a40ebc7ee29b02a6e92daa389e3c5611f086f/gen/tollvm.cpp#L259
Isn't this only for size_t? Because 'int' in D is always 32-bit
according to the spec. I can't imagine LDC would deliberately violate
the spec this way.
T
--
What do you mean the Internet isn't filled with subliminal messages? What about all those buttons marked "submit"??
More information about the Digitalmars-d-announce
mailing list