ARM bare-metal programming in D (cont) - volatile

Iain Buclaw ibuclaw at ubuntu.com
Sat Oct 26 05:27:43 PDT 2013


On 26 October 2013 12:41, Johannes Pfau <nospam at example.com> wrote:
> Am Fri, 25 Oct 2013 21:16:29 +0200
> schrieb "Timo Sintonen" <t.sintonen at luukku.com>:
>
>> On Friday, 25 October 2013 at 18:12:40 UTC, Johannes Pfau wrote:
>> > What's wrong with the solution Iain mentioned, i.e the way
>> > shared
>> > is implemented in GDC?
>> >
>> > http://forum.dlang.org/thread/bifrvifzrhgocrejepvc@forum.dlang.org?page=4#post-mailman.2475.1382646532.1719.digitalmars-d:40puremagic.com
>> > http://forum.dlang.org/thread/bifrvifzrhgocrejepvc@forum.dlang.org?page=4#post-mailman.2480.1382655175.1719.digitalmars-d:40puremagic.com
>>
>> There is nothing wrong if it works.
>> When I last time discussed about this with you and Iain, I do not
>> remember if this was mentioned. I have been on belief that gdc
>> has no solution.
>
> Yes, this was news to me as well.

Was added about 3 years ago...

https://github.com/D-Programming-GDC/GDC/commit/f87a03aa2dc619caf076174f857d4e299ce2bd8d

And the type qualifier only got propagated to the declaration just
over a year ago.

https://github.com/D-Programming-GDC/GDC/commit/ce3e42c7283616e49728dac050f9fb090c94bfd0


-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


More information about the Digitalmars-d mailing list