November 29, 2019 Re: wiki: D on AVR | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ola Fosheim Grostad | 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 AVR-GCC it would be long,
>> This is not a problem, just use the type aliases like those in core.stdc.stdint to work around
>
> Doesn't D promote all arithmetic operations to 32bit even if the operands are 16 bit?
yes, but it's not a big problem, it's enough to cast
|
Copyright © 1999-2021 by the D Language Foundation