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

eles eles at eles.com
Fri Oct 25 06:32:48 PDT 2013


On Friday, 25 October 2013 at 04:30:37 UTC, Mike wrote:
> On Thursday, 24 October 2013 at 19:11:03 UTC, Walter Bright 
> wrote:
>> On 10/24/2013 11:33 AM, eles wrote:
>>> On Thursday, 24 October 2013 at 17:02:51 UTC, Walter Bright 
>>> wrote:
>>>> On 10/24/2013 4:18 AM, eles wrote:
>>>>> On Thursday, 24 October 2013 at 06:48:07 UTC, Walter Bright 
>>>>> wrote:
>>>>>> On 10/23/2013 11:19 PM, Mike wrote:
> Maybe /shared/'s definition needs to be further defined to 
> ensure all compilers implement it the same way, and be 
> unambiguous enough to provide a solution to this /volatile/ 
> debate.

The problem with shared alone variable is that it can be simply 
placed by the optimizer at another memory location than the 
intended one, even if all threads are seeing it "as if" at the 
intended location.



More information about the Digitalmars-d mailing list